Thursday, May 31, 2012

Unable to find type [Microsoft.SharePoint.Administration.SPWebService]: make sure that the assembly containing this type is loaded

I got this error while trying to enable developer dashboard using PowerShell command. The error message I got is "Unable to find type  [Microsoft.SharePoint.Administration.SPWebService]: make sure that the assembly containing this type is loaded".

Solution:
To over come this issue I am explanning what I did:
I opened my powershell and then navigate to c:\users\administrator and from this I run the below command:
add-pssnapin microsoft.sharepoint.powershell

So my whole command is:
PS C:\users\administrator> add-pssnapin microsoft.sharepoint.powershell

Also you can refer the figure below for reference.

No comments:

Post a Comment