When i m tryin to run a web application from wss Virtual directories im getting this following error and im using SP2010 with 8081 port and visual studio 2010.
For the past 2 days im googling and came across many solutions but nothin has fixed for me.
I tried creating website in 14/_layouts also but no progress.
Here the scenario is
1) Sharepoint running at port 8081
2)Default port in my system is 80
So i tried creating web applications under both 80 and 8081 virtual directories.
In both the applications when i am trying to run the following code,it throws the same error as follows:
SPSite oSite = new SPSite("http://Sitename:8081");
The error is :
"The Web application at http://Sitename/ 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".
So, anyone help me please. I am badly in need of this solution.
View Complete Post