Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8004411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:54:51+00:00 2026-06-04T16:54:51+00:00

I am trying to deploy a console application to a folder on a DMZ

  • 0

I am trying to deploy a console application to a folder on a DMZ server using autodeploy with MSBuild and Team Foundation Server.

I am already deploying multiple sites to that same server and it works great. I have tried multiple ways but the files are not deployed.

First, I tried to deploy the console app in the same way as i do for my web site, ie:

<MSBuild
    Projects="$(SolutionRoot)\MySolution.sln"
    Properties="AllowUntrustedCertificate=True;AuthType=Basic;
    Configuration=DEBUG;CreatePackageOnPublish=True;                                
    DeployIisAppPath=Default Website/dummy.dev.myapp;
    DeployOnBuild=True;DeployTarget=MsDeployPublish;
    MSDeployPublishMethod=WMSvc;
    MsDeployServiceUrl=https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd;
    UserName=userid;Password=password;UseMsdeployExe=True"
/>

Without success.

EDIT: No error message is returned. It all seems to go well.

Then, I also tried to deploy the console app as follows:

<Exec Command="&quot;C:\Program Files\IIS\Microsoft Web Deploy V2\MSDeploy.exe&quot; 
                -verb:sync 
                -source:contentpath=&quot;$(OutDir)\MyApp.Precompiled&quot; 
                -dest:contentpath=&quot;D:\dev.myapp&quot;,computername=xxx.xxx.xxx.xxx,username=userid,password=password" 
                ContinueOnError="false" />

I actually also tried with computername as https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd.

EDIT: The following is what I got.
EXEC: FileOrFolderNotFound
EXEC: Object of type ‘contentPath’ and path ‘E:\Builds\1…\dev.myapp’ cannot be created.
EXEC: The path ‘\?\E:\Builds\1…\dev.myapp’ is not valid.
EXEC: 1.
E:\Builds\1…\BuildType\Targets\Deploy.targets (142): The command “”C:\Program Files\IIS\Microsoft Web Deploy V2\MSDeploy.exe” -verb:sync -source:contentpath=”E:\Builds\1…\dev.myapp” -dest:contentpath=”D:\dev.myapp”,computername=https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd,username=userid,password=password” exited with code -1.
I realize I haven’t read all of the error, Do I really need an UNC path?

Does anyone know how to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:54:52+00:00Added an answer on June 4, 2026 at 4:54 pm

    I finally found out how to make it work.

    <Exec Command="&quot;C:\Program Files\IIS\Microsoft Web Deploy V2\MSDeploy.exe&quot; 
                -verb:sync 
                -source:contentpath=&quot;$(OutDir)\MyApp.Precompiled&quot; 
                -dest:contentpath=&quot;D:\dev.myapp&quot;,computername=https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd,username=userid,password=password,authtype=Basic 
                -allowUntrusted=True" 
                ContinueOnError="false" />
    

    I changed computername to computername=https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd, added authtype=Basic and allowUntrusted=True and voila it worked.

    It was quite frustrating not having any kind of feedback of what went wrong with the first option. But when I was using the second alternative I got feedback to work with.

    If anyone know how to make this work using the MSBuild task, please feel free to enlighten me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to deploy an web application on tomcat server fronted with Nginx. The
Trying to deploy application using ClickOnce to a webserver running sharepoint. I can publish
I am trying to deploy a PHP application using subversion and post-commit script. I've
I am trying to deploy a Spring application on WAS 6.0 (JDK 1.4.2). Day
I am trying to deploy my Ruby on Rails application on Media Temple. The
I'm trying to deploy a java application to appspot (google appengine). I'm new to
I am trying to deploy a Spring 3.0 Webapplicatoin to a tomcat5.5 server running
I am trying to deploy a simple rails application to an heroku account, I
I am trying to deploy an ear file to JBOSS AS (defalut server). The
Hi I'm trying to build/deploy war to websphere process server 7.0. and I run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.