Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

New-Object : Cannot find type [Microsoft.Sharepoint.SPRoleAssignment]: make sure the assembly containing this type is loaded.

Note: i have added the snap-in as follows Add-PSSnapin Microsoft.SharePoint.PowerShell

Any suggestions/pointers would be appreciated. Regards, Ketan

share|improve this question
resolved it was due to case sensitivity written $roleAssignment = New-Object Microsoft.SharePoint.SPRoleAssignment($Group) instead of $roleAssignment = new-object Microsoft.SharePoint.SPRoleAssignment($Group) its working fine now.... Thanks, Ketan – Ketan03 Aug 17 '12 at 6:45

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.