I faced this issue many times during working on various sharepoint projects
System.IO.FileNotFoundException: The Web application at http://server/sites/sitecoll/default.aspx 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. at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken) at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
i was getting this error from my custom web service deployed at sharepoint server
one nice blog post i found at
http://sharepointguild.blogspot.com/2009/04/systemiofilenotfoundexception-error.html
apart from solution mentioned there i did couple of more changes to my web service
- Changed the app pool identity from NetworkService to a priviledge user
- Changed the custom web service app pool to sharepoint web application app pool
.


No comments:
Post a Comment