문제

I have a SharePoint 2007 solution, that runs off FBA. I've created a new group called "Admin" and added all of my users who require administrative priviledges to this group.

During registration, I itterate all groups in SharePoint for the "Admin" group so I can e-mail them a notification of this new registration, but I keep hitting a "The group "Admin" does not exist in SharePoint." exception.

I've confirmed the existence of the group, unfortunately I cannot replicate this error on my local environment, just the deployed environment so cannot debug the process. I've deleted, and re-created the group, done an IIS reset and even stopped and started the Timer service.

Thanks,

Eric

도움이 되었습니까?

해결책

How do You iterate through the groups? Using SiteGroups of the SPWeb instance? Have You tried oWeb.SiteGroups["Admin"]?

UPDATE: web.Groups gives You only groups for this specific web. Loop through web.SiteGroups to get all the groups in the site colletion. You can also get group directly by calling web.SiteGroups["YourGroupName"]

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top