cannot connect to configuration database
hi friends, i have web method (web service) returns url of sharepoint site. when build (f5) every thing goes well. when browse it, generates following error. microsoft.sharepoint.spexception: cannot connect configuration database. tips .... i have search , worked on many kb articles nothing has helped. here 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(); } } |
check identity running in webservice application pool has sufficient permissions read sharepoint configuration database.
Archived Forums A-B > ASMX Web Services and XML Serialization
Comments
Post a Comment