• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to Register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.


No announcement yet.

Cannot open backup device.Operating system error 5(Access is denied.)


Unconfigured Ad Widget

  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot open backup device.Operating system error 5(Access is denied.)

    WordPress Hosting on SSD Servers
    Cannot open backup device 'C:\Users\WPServer\AppData\Local\Temp\TestDB.bak'. Operating system error 5(Access is denied.)


    Sometimes you face an error while taking a backup of MSSQL database from WebsitePanel. This is nothing but related with the permission of WebsitePanel user (WSPServer). An error message will look like following:
    Error backing up SQL Server database
    Technical Details [Collapse]
    Page URL: http ://
    Logged User: serveradmin
    Work on Behalf: AdminUser
    Hosting Space: 4
    Stack Trace: System.Web.Services.Protocols.SoapException: oapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Cannot open backup device 'C:\Users\WPServer\AppData\Local\Temp\TestDB.bak'. Operating system error 5(Access is denied.).
    BACKUP DATABASE is terminating abnormally.


    1.Login to your VPS via RDP
    2.Open Computer and navigate to C:\Users\WPServer\AppData\Local\
    3. Right click on Temp folder, go to Security tab and click on Edit permissions. Here, you will find WSPServer user, give Write permission to WSPServeuser
    4.Now, again attempt to take MSSQL Database backup from WebsitePanel

    Park B
    Last edited by Marc_AccuWebHosting; 05-19-2016, 10:43 PM.

  • #2
    Here's an alternative:

    In my case, the WPServer already had Read/Write access to the folder. I had to check Server Manager->Tool->Services and find the user ("Log On As" column) for service: SQL Server (SQLEXPRESS).

    It listed "NT Service\MSSQL$SQLEXPRESS", so I went to the local folder (listed above) and added "NT Service\MSSQL$SQLEXPRESS" as the user to give Write permissions.

    Then, I tried to restore the database again from WebsitePanel, and the upload worked! I logged onto my web app and found my database restored successfully.
    Last edited by dustinnulf; 01-11-2016, 09:38 PM.


    • #3
      Thank you for the solution here. I will save this thread for further use.


      • #4
        ASP.Net Hosting starts @ $3.18/Mo.
        Usually, I make backups using another database for that hosting that allows easy integration and other MySQL features. I've never been experiencing errors like this which is unallowable when you're going for quality database management solutions
        Last edited by Marc_AccuWebHosting; 03-28-2019, 11:47 PM.



        Sign up for a News Letter Click here to sign up