Hi I am trying to open my site using SPSite and SPWeb instances and getting an error message as below-
The Web application at http://url 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.
CODE is -
SPSite siteCOll = new SPSite(siteURL);
SPWeb oWeb = siteCOll.OpenWeb("url");
I can access site using browser perfectly.
I am running VS as administrator.
I have done permission checking aswell.
View Complete Post