Solved

Problem understanding MSDeploy's -dest param

Posted on 2011-09-02
2
916 Views
Last Modified: 2012-05-12
I have a site named myWeb. It's path is C:\inetpub\wwwroot\myWeb. I'm trying to devise the msdeploy commandline that will update the current contents with myWeb.zip's deployment package.

To my mind it should be:

"msdeploy" -verb:sync -source:contentPath="C:\deployContents\myWeb.zip" -dest:contentPath="C:\inetpub\wwwroot\myWeb" 

Open in new window


or maybe just using the site name instead of the site's path. But i get:

Error: Cannot create the file 'C:\inetpub\wwwroot\myWeb' because a directory with the same name already exists.
0
Comment
Question by:juststeve
2 Comments
 
LVL 17

Accepted Solution

by:
Kent Dyer earned 125 total points
ID: 36476843
I would use the second example on this page to do what you need..

http://www.hanselman.com/blog/MSDeployNewIISWebDeploymentTool.aspx

HTH,

Kent
0
 

Author Comment

by:juststeve
ID: 36478319
You make a good point - i should be explicitly coding objectives all the way from VS.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now