My ItemAdded event recevier is not firing when the Word Automation Services adds a file to a Sharepoint document library.

If I manually debug the ItemAdded event receiver, it is getting triggered. I don't know why it is not getting triggered when the file is added from Word Automation Services. Please help.

5 Answers 5


I am not sure about this, but I know that there have been problems with starting workflows automatically, if a file is added by the "system account".

See this article: http://blogs.technet.com/b/victorbutuza/archive/2009/03/14/workflows-do-not-start.aspx

As a said, I don't know if it is the same with event handlers -but I could be the reason.


i ran into the same problem, wondering why my breakpoint was not hit. Then i realized that the event handler is not running under the default W3WP process. So attaching your debugger to the right worker process (or all ) will give you (again) all debugging facilities.


Maybe you should handle ItemFileConverted event?


Is it possible that the Word Automation Service runs under the wrong application pool and has no permission?

  • I don't think thats the point. Since the WAS creates the document in the library it should have proper permission.
    – AlexPoint
    Commented Jun 15, 2011 at 6:50

I have been having this problem 3 days and finally found reason why and the solution. The reason the debugging was not working was that the debugger should attached to the app pool that the Word automation service is running. Usually it's named with GUID and you will see the an app pool has many app run under. After I attach my debugger to that app pool my break point is reached.

I hope it helps somebody...

  • The OP is asking why it's only working when they're debugging; they don't seem to have any problems with the debugging itself.
    – Stu Pegg
    Commented Sep 24, 2012 at 21:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.