This project is read-only.

Unable to obtain access to SharePoint context: Will not be able to resolve features Ids

Mar 3, 2011 at 9:36 PM

Issue/Behavior

When clicking Inspect button on a stp, get the following error in the status bar:

"Unable to obtain access to SharePoint context: Will not be able to resolve features Ids"

All the features are listed as GUIDs in both listboxes.


I walked the source code and found it had to do with STP Inspector trying to get access to the local SharePoint Farm context.

This is in the line:

= SPFarm.Local

This returns a value of null.  I'm sitting on the server as local administrator running the code and this should not happen. 

Solution

I was running Windows Server 2008 R2 x64 with User Access Control turned on.  Due to global policies applied from on high, I can not permanently turn it off.  To get it to work, I had to right-click the STPInspectorWin.exe and choose Run as Administrator.

Jun 23, 2011 at 6:46 AM

Yes, it needs to run with Admin access.

 

Madhur