Pages

Friday, October 9, 2009

Errore: VSeWSS - No SharePoint Site exists at the specified

Visual Studio 2008 extensions for Windows SharePoint Services 3.0, v1.3 - Mar 2009 CTP o più comunemente VSeWSS 1.3
è un tool che installa i nuovi template per i progetti di nuove applicazioni Microsoft SharePoint 2007.
Purtroppo può capitare che VSeWSS 1.3 ritorni il seguente errore durante la fase di deploy:

Microsoft.SharePoint.Tools.WebNotFoundException: No SharePoint Site exists at the specified URL: http://myurl:myport/application/myapp.
The Web application at http://myurl:myport/application/myapp 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://myurl:myport/application/myapp 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)

Questo errore ci notifica che VSeWSS non trova l'url inserita nel progetto per effettuare il deploy (http://myurl:myport/application/myapp).
Il problema potrebbe essere causato da due motivi:

1 - la web application non esiste
2 - la web application esiste ma non viene trovata

Ecco come operare.
Avviare SharePoint 3.0 Central Administration:

e cliccare su Operations nel menù di sinistra sotto la voce Central Administration.
Adesso cliccare sulla voce Alternate access mappings, sotto la voce Global Configuration:

selezionare la mapping collection da modificare dalla dropdown in alto a destra (per motivi di privacy le web application sono nascoste)
e cliccare quella su quella da modifcare:


Cliccando su una specifica url si avrà la possibilità di modificarne l'url protocol, host e la porta mettendo quelle corrette (ovvero quelle
inserite nel progetto VSeWSS) se invece bisognerà inserirne una nuova, si cliccherà sul pulsante Add Internal URLs:



Riconfigurare il progetto VSeWSS con l'url creata/modificata e ricompilare.

No comments:

Post a Comment