WssInterop event handler not firing

S

still-new

Hello:

I am using PS2007 and testing event handler for the
OnWssWorkspaceCreated method.

Is it right that this is supposed to fire when a project workspace is
created? It does not fire when I create a site from PWA > Site Actions
Create > Sites and Workspaces > select template Microsoft Office
Project workspace - click OK.

Any ideas what the issue may be? I do not see any entry added in the
event viewer. I have tested a similar event handler for onPublished
method, which works fine, so I am assuming my compiling and
resgistration process is working fine.

Any help will be appreciated!


--------------------------------
public class PWSEventHandler : WssInteropEventReceiver
{
public override void OnWssWorkspaceCreated(PSContextInfo
contextInfo, WssWorkspaceCreatedEventArgs e)
{
EventLog myLog = new EventLog();
myLog.Source = "Test Event Handler";
myLog.WriteEntry("testing", EventLogEntryType.Information,
3651);
}
}
 
S

still-new

Actually I realized that the event handler fires when a project is
published for the first time and a project workspace is created. It
does not fire when I create a project workspace manually. If this is
the expected behavior, please let me know. Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top