How to deploy/register WSSInterop OnWssWorkspaceCreated

Antwoord How to deploy/register WSSInterop OnWssWorkspaceCreated

  • Monday, April 19, 2010 5:54 PM
     
     

    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

     

All Replies

  • Thursday, April 22, 2010 6:01 PM
    Moderator
     
     

    I realize that you are deploying to 2010, but have you tried following the instructions in the 2007 SDK?


    Stephen Sanderlin, Project MVP -- MSProjectExperts
  • Thursday, April 22, 2010 6:08 PM
     
     

    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

  • Friday, April 23, 2010 2:23 PM
    Moderator
     
     Answered

    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