Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having difficulties troubleshooting a Database Mail issue. When I try to stop and start the service using sysmail_start_sp and sysmail_stop_sp, I see a critical error in the Administrative Logs on the server.

The relevant exception appears to be:

Message: Access to the path 'C:\Windows\Microsoft.NET\Framework64\
    v2.0.50727\Config\machine.config' is denied.

I am not finding good documentation on which Windows account is used for Database Mail. I thought it would be the SQLAgent service. I have tried changing the permissions of this user to no avail.

Any guidance is appreciated.

share|improve this question
What is the SQL Server version? – Max Vernon Mar 13 '13 at 19:10
Are you getting an error from running sysmail_start_sp ? – Max Vernon Mar 13 '13 at 19:10
First, please install Service Pack 2. That won't fix the error but there's no reason to be on RTM - it's no longer supported! – Aaron Bertrand Mar 13 '13 at 19:16
I suspect the SQL Server service account. However I've never seen that specific error. – Aaron Bertrand Mar 13 '13 at 19:33
what is the source of that error? is it somehow related to sql server? – swasheck Mar 13 '13 at 19:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.