I need to create an ASP.NET application to read and write SharePoint lists.
I can do it with an executable but I've failed to do it with asp.net.
I start a new asp.net project, just write "Hello world" in a div, add a reference to Microsoft.Sharepoint.
When I start the apps I get the following message:
Could not load file or assembly 'Microsoft.Sharepoint.Sandbox, Version=22.214.171.124, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. An attempt was made to load a program with an incorrect format.
This message normaly says something about a wrong target CPU for one of the Dlls, I've tried every CPU with no success.
I'm using VS 2010 on SharePoint Enterprise 2010, I am SharePoint farm admin.
I develop locally on the server itself.
Any ideas, how to resolve that problem??