Friday, August 28, 2009

SPEmailEvent Handler not firing

I was suffering from this problem that my email event handler was not firing up. i work around then foounf out that i have to go for infrastrusture updates for the SharePoint. and then it worked find,
but later i hv faced one big problem , that when i was updating my code . it was not working , it was not getting refacted . after running trhough i came to know that the sharepoint code which runs under sharepoint timer job , dont take new code untill you either restart the timer of sharepoint or create new version of dll and deploye in to the GAC,
so if you are facing this kind of problem the folllowo the process.
it holds good for the Workflows if you have used Timer event in it .

Use Command
Net stop sptimerv3
Net start sptimerv3

this will reset the timer and the new code will be in effect