Running a sharepoint windows app in x64 Vs x86

If you execute the following line of code on a Windows app and get the error on red specified :
=================================================================

SPSite site = new SPSite("http://yoursite.com"); 
SPWeb web = site.OpenWeb();
=================================================================
Error : The Web application at http://yoursite.com could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
=================================================================

Issue is : you are not targetting the X64 - targeting x64 or AnyCpu & .NET 3.5 Framework in your Windows Application will resolve this issue.
=================================================================

Comments

Anonymous said…
Very sοon this wеb рage will bе fаmous amid all blogging and ѕite-buіlԁing
viеwerѕ, due to it's nice posts

Visit my webpage www.ukinsurancewise.co.Uk
Anonymous said…
Тhis article iѕ truly a pleaѕant one it assistѕ new net vіewerѕ, who are wіѕhing fοr blogging.


Му blοg pοst: www.Ukinsurancewise.co.Uk
Anonymous said…
Hi i am kaνіn, its my fігst оcсasion to сommentіng аnуwhere, when i read thіs artiсle
і thought i cοuld also make сomment due to this
sensіble pіесе οf writing.


Hеre iѕ my homеpage :: 1 Month Car insurance

Popular posts from this blog

Linksys Wireless Connection Failure

The security validation for this page is invalid. Click Back in your Web

Power Apps toPower Automate Error - The input body for trigger 'manual' of type 'Request' did not match its schema definition , the input String does not validate against the date