How to deploy/register WSSInterop OnWssWorkspaceCreated
-
19 aprilie 2010 17:54
Hi,
I want to create a receiver which will fire on project server workspace creation. so far i have done this
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.SharePoint; using System.Diagnostics; using Microsoft.Office.Project.Server.Events; namespace SiteCreationEvents { public class CSiteCreation : WssInteropEventReceiver { public override void OnWssWorkspaceCreated(Microsoft.Office.Project.Server.Library.PSContextInfo contextInfo, WssWorkspaceCreatedEventArgs e) { base.OnWssWorkspaceCreated(contextInfo, e); EventLog el = new EventLog("Application"); el.Source = "SOZA"; el.WriteEntry("Project Server workspace created event receive"); } } }
I have already signed the assembly but dont know how to deploy
Please help
Toate mesajele
-
22 aprilie 2010 18:01Moderator
I realize that you are deploying to 2010, but have you tried following the instructions in the 2007 SDK?
Stephen Sanderlin, Project MVP -- MSProjectExperts -
22 aprilie 2010 18:08
Hi Stephen,
Thanks for reply
i am doing on PS 2007 well the question is i have written the C# code in a class library but how to create feature file (feature.xml) for deploying/integrating the receiver. i need the template for features.xml and steps to follow.
Many thanks
-
23 aprilie 2010 14:23Moderator
This can be found in the SharePoint SDK... the process is too complicated to detail here. I would honestly suggest that you use WSPBuilder -- a codeplex solution that will create SP Solution files for you. Check it out at http://wspbuilder.codeplex.com/. I believe the 2010 compatability is in beta at this time.
Stephen Sanderlin, Project MVP -- MSProjectExperts- Marcat ca răspuns de Stephen Sanderlin [MVP]Moderator 4 mai 2010 19:41