Sunday, September 12, 2010

"FileNotFoundException was unhandled" SharePoint 2010 newbies error

Hi,

Some error that I had just when I started working on the SharePoint 2010 machine. I tried to investigate the SharePoint 2010 API , but surprisingly even trying to create an SPSite object cause a runtime error.

The reason is that you Visual Studio is set for running a 32 bit application, and SharePoint 2010 is 64 bit of course.

The only thing you need to do is to go to the properties of your application/project, then change under the Build tab - the platform target to x64.

Now re-run your console application.

Done.

No comments:

Post a Comment