I have problem to get access to the local farm (SharePoint 2010 Foundation/Windows 7) using the code:
SPServer.Local
from the application deployed as ClickOnce. It returns null.
I have requested full trust and installed publisher certificate in the Trusted Publishers Store (user and computer).
The application launched as the administrator works fine.
The same application deployed as ClickOnce on Server 2008 R2 and SharePoint Server 2010 works also fine without any additional configuration.
In both cases the application has been launched from the same domain account that is added to SharePoint administrators group.
I will appreciate any suggestions how to overcome this problem.
Mariusz
Mariusz