Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Sharepoint 2013 - Visual Studio 2010 Noob question

$
0
0

Hello ... I'm pretty new to SP 2013, but have some decent SP2010 development experience.  So what I thought would be an easy task is that I am trying to create a simple .net Webservice in Visual Studio 2010 to query a list on my new SP 2013 site.  I have Visual Studio 2010 installed on my SP 2013 server, added a reference to "microsoft.sharepoint" from the Common Files\15\ folder, and try to run the code to connect to the 2013 site. 

using (SPSite lDevSite = new SPSite("http://my2013SpSite"))
{

    // query list item, etc ...

}

It compiles fine, but when I try to run my *.asmx file, when it tries to connect to the site I get the following error .."Microsoft SharePoint is not supported in 32-bit process. Please verify that you are running in a 64-bit executable." .. Fair enough, I switch over the properties on the solution to "x64", and then it doesn't compile. Returns:  "Could not load file or assembly 'xxxx' or one of its dependencies. An attempt was made to load a program with an incorrect format."

Am I missing something basic here ?  Do I need to install Visual Studio 2012 on my Sp 2013 server ?  I have read about setting my application pool to be "32 bit enabled" ?? 



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>