Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot connect to configuration database...

Status
Not open for further replies.

bereza

Technical User
Jun 14, 2006
105
EU
Hi friends,

I have a web method (Web Service) that returns an url of a sharepoint site. When I build it (F5) every thing goes well. but when i browse to it, it generates following error.

Microsoft.SharePoint.SPException: Cannot connect to the configuration database. For tips ....

I have search very much and worked on it many KB articles but nothing has helped.

here is the code.

[WebMethod]
public String GetMyContactsForSmartTag()
{
try
{
Guid MySiteGuid = new Guid("5E9EAB1B-F653-43A9-B2F6-751D443E7B5F");

SPSite IgnitoSite = new SPSite(MySiteGuid);

return IgnitoSite.Url;
}
catch(Exception ex)
{
return ex.ToString();
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top