« Previous Next »

Thread: Auto deploy ASP files

Last post 07-15-2009 2:53 AM by raskado. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 07-13-2009, 10:20 PM

    • raskado
    • Not Ranked
    • Joined on 07-13-2009, 10:08 PM
    • Posts 13

    Auto deploy ASP files

    Hello everyone,

    I want to auto deploy ASP files to live server and back up previous files before replacing them, Can anyone please tell how can I do that using Web Deployment Tools? and Is there any guidline or video to illustrate the steps?

    I appreciate anyone helps, Thanks

    Kiarash

  • 07-14-2009, 1:55 AM In reply to

    Re: Auto deploy ASP files

    An example command to move your asp web site "Default web site" to a server "Server" as "new Web Site" would be like:

    msdeploy -verb:migrate -source:metakey="default Web Site" -dest:metakey="New Web Site",computername=server,username=YourUserName,Password=PassWord

    1. By default when you deploy your asp files to the server using Web Deployment Tool the files will be replaced/added/deleted based on your situation. If you want the files to be backed up then you can do that manually before starting the migration process. Its preferable that you back up your metabase (IIS 6) or config (IIS7) too.

    2. If you want to run these pre and post deployment steps as part of the migration process you can wait till RTW of msdeploy is released (soon) where you should be able to run pre and post deployment scripts and commands based on your needs as part of the deployment step

    3. Web Deployment Tool also enables you to add rules to skip certain files, certain types of files or skip newer files etc.

    To know more about these and other commands you can read here

    Let us know if you need more information

  • 07-15-2009, 2:53 AM In reply to

    • raskado
    • Not Ranked
    • Joined on 07-13-2009, 10:08 PM
    • Posts 13

    Re: Auto deploy ASP files

    hi, thanks for your reply, I have tried the command you have given and other similar commands but all the times an arror raised:

    Error:  Object of type 'metaKey' and path 'default Web Site' cannot be created
    Error:  The metabase key '/default Web Site' could not be found.
    Error:  Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Can you please help me on that?

    Thanks

Page 1 of 1 (3 items)
Microsoft Communities