VSeWSS: how to solve the WebNotFoundException

Print Content | More

I started using VSeWSS as a support tool to develop a WSS/SharePoint application and I had to face some common issues. Sometimes when you try to ‘build and deploy’ your solution you’ll get this exception reported (in the detailed log that VSeWSS emits):

Microsoft.SharePoint.Tools.WebNotFoundException: No SharePoint Site exists at the specified URL: http://XXXXXX. The Web application at http://sharepntdev 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. ---> System.IO.FileNotFoundException: The Web application at http://sharepntdev/ 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)
   --- End of inner exception stack trace ---
   at Microsoft.SharePoint.Tools.SharePointProxies.SPProxyUtility.GetWeb(String url)
   at Microsoft.SharePoint.Tools.SharePointProxies.SPWebFacade.GetWeb(String url)
   at VSeWSS.Server.Services.SPService.GetWeb(String url)

It tells you the URL in which he’s trying to deploy your facility. To correct that just open the project properties and go to the ‘Debug’ tab, then insert the correct URL in the field ‘Start browser with URL:’ like in the following screenshot:

WebNotFoundExceptionProjectProperties



Sharepointwssvsewss, Webnotfoundexception

3 comments

  1. #1 da Guardian - Saturday March 2010 alle 01:15

    Hello, a couple more of questions: is your website opening and working correctly if you open it in a browser (not within VS) ? are you pointing to a sub-site or to the SP root ? I think you should point to the root cause VSeWSS may need to install and modify files commmon to all your sites in the site collection. If you can give me more infos about your current installation maybe I can help you more. Greetings.

  2. #2 da edith - Saturday March 2010 alle 01:15

    Hi, Im using the start browser with URL option, and assigning a valid MOSS site, and still the same error appears.. :( Do you know what may be the prob??

  3. #3 da Kushal - Saturday March 2010 alle 01:15

    I am having the same problem “No SharePoint Site exists at the specified URL” I get this error when i try to deploy it I have tried numerous solutions given in the internet Plz help

All fields are required and you must provide valid data in order to be able to comment on this post.


(will not be published)
(es: http://www.mysite.com)