Hello,
I currently have a console application that loops through all rpojects and deletes all of their sites and recreates them using a new template associated with an EPT. This works fine.
I also have a WssInteropWorkspaceCreated event handler that assigns a group with full control to the project site. This also works fine whether a new project is created or whether a site is created manualy from server settings project sites.
Together, they do not work.
When I run my tool to delete and create each site one by one, my event handler fires each time, and reports successful execution, however if you navigate to the site the group was not added.
Furthermore, After I run my "Mass Delete/ReCreator", manually creating a project site from server settings fires my event handler, but no longer adds the group. Again, all entries into the ULS logs show success, there are no errors anywhere.
Any Ideas?
I call wss.deleteSIte and wss.CreateSite for each project site. Simple and straightforward. So I thought.
120811049008
EDIT: I should add, deregistering and registering my event after I run my mass deleter/recreator makes the event handler work properly again. (until i run the mass deleter/recreator)