SharePoint Event Receiver Does Not Fire

1. Add Trace Log to see if it is really not firing:

string now = DateTime.Now.ToString(“ddMMyyyy-HHmmss”);
// Creates the text file that the trace listener will write to.
System.IO.FileStream myTraceLog = new System.IO.FileStream(“C:\\temp\\SharePoint Trace Log\\” + now + “.txt”, System.IO.FileMode.OpenOrCreate);
// Creates the new trace listener.
TextWriterTraceListener myListener =  new TextWriterTraceListener(myTraceLog);
Trace.WriteLine(“Event Receiver Starting”);


2. Go to “Manage Site Features”, deactivate the feature and re-activate it again.

This entry was posted in Event Receiver, SharePoint 2010, Visual Studio 2010 and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s