Let me remind you my issue is with windows service using sps/wss
object model, it has no problem in accessing webservice deployed on
any server.
Now coming to the point widnows service communicates well with a
webservice, but now i want my windows service to talk to web service
only on need to talk basis for which i have to enforce some rules for
accessing webservice, and those rules are based on SPS/wss object
model. I have also tried to impersonate the current accunt but it did
not work.
note: My Environment is small server farm, and m using service from
administrator account on front end server which is also admin on db
server.
but when ever i try to use object model in windows service i get the
following exception,
Service cannot be started. Microsoft.SharePoint.SPException: Cannot
connect to the configuration database. --->
System.Runtime.InteropServices.COMException (0x81070555): Cannot
connect to the configuration database.
at Microsoft.SharePoint.Library.SPRequestInternalClass.OpenSite
(String bstrUrl, Boolean bGetUrlOnly, String& pbstrServerRelativeUrl,
Guid& pgSiteId, Int32& pOwnerID, Int32& pSecondaryContactID,
DateTime& pdtLastContentChange, DateTime& pdtLastSecurityChange)
at Microsoft.SharePoint.Library.a.a(String A_0, Boolean A_1,
String& A_2, Guid& A_3, Int32& A_4, Int32& A_5, DateTime& A_6,
DateTime& A_7)
--- End of inner exception stack trace ---
at Microsoft.SharePoint.Library.a.a(String A_0, Boolean A_1,
String& A_2, Guid& A_3, Int32& A_4, Int32& A_5, DateTime& A_6,
DateTime& A_7)
at Microsoft.SharePoint.SPSite.get_ServerRelativeUrl()
at Microsoft.SharePoint.SPSite.get_Url()
at MyNewService.Service1.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback
(Object state)