, , ,

Hello Everyone,

This was the another error which I came across the same day with Email Router.  Everything was working fine when suddenly the Email stopped being sent from CRM.  I checked the CRM Email Router Service and the Router Settings once again to confirm if everything was alright. I then finally checked the Event Viewer which showed the following Error:

System.IO.IOException: The process cannot access the file ‘C:\Program Files\Microsoft CRM Email\Service\ Microsoft.Crm.Tools.EmailAgent.SystemState.xml’ because it is being used by another process.

After some reading I found, this was not any unknown Issue and has been discussed under the Microsoft Knowledge Base Article.

According to the following Article “This problem occurs because the Microsoft.Crm.Tools.EmailAgent.SystemState.xml file is corrupted.

Resolution: Stop the Email Router Service and Delete the ‘Microsoft.Crm.Tools.EmailAgent.SystemState.xml‘ file under ‘C:\Program Files\Microsoft CRM Email\Service‘. And Restart the Email Router Service. This restart of service will automatically create the fresh xml file again.

Hope this will be Helpful.

Thanks !!!