How to do a backup file from asp.net code behind

Discussion in 'ASP.NET / ASP.NET Core' started by javier1981, Apr 2, 2009.

  1. To everybody,

    I have the following trouble, I'm deploying a web solution to do backup file from asp.net code behind, i mean, store in my web folder _database the backup file but i get one reasonable error:

    Cannot open backup device 'E:\web\leonnicom00\htdocs\App_Data\2009-04-02.bak'. Operating system error 3(The system cannot find the path specified.). BACKUP DATABASE is terminating abnormally.

    because the IIS where is hosted my domain reside in a different machine where is running SQL Server and the SQL Server try mapping the web application path in your location.

    How can i do to fix this?
    Kind Regards,
    Javier
     
  2. I got the solution through Control Panel API

    Hi everybody again,

    Looking for through the control panel i found the control panel API, by default is unavailable, once you has agree the terms you can start to use it.
    This API is a web service over SSL that can be called if the ip address where reside the web proxy is added to the filtered URI List. The API Key is a required parameter to call successfully any web method.
    Kind Regards,
    Javier
     

Share This Page