Hi ,
I have created one service which is installed on same machine where SharePoint Server (Farm) installed . for service developed used SharePoint Server object Model API (e.g SPSite,SPWeb) . this service call through other application i observed two case when i installed service on different machine -
1. SharePoint standalone server - everything is work fine when i impersonate code with site collection administrator . even Service context keep it as Local System . doesn't matter what is the context of service.
2.SharePoint Farm - Same above scenario but i need to set service logon context as farm Administrator otherwise it throw error as i mentioned in question
Is any specific reason to i got this error on farm environment only . Is any option available , rather than set service context set as SPFarm admin.
thanks in advance