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();
}
}
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();
}
}