I'm trying to use SP 2010 site from ASP.NET Web Site Project and when I create a new instance of SPSite I get this error: The Web application at 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. I know that this question is common over the net but I didnt find the solution for me The Code:
using (SPSite siteCollection = new SPSite("http://sp")) { ; } 1.I run my code on sharepoint server its the same machine
2.I copy paste the Url to browser and its work
3.I use .NET 3.5 Framework and Visual Studio 2012
4.I have full permission on machine, SharePoint, MS SQL for my account.
Any Suggestion for that big problem