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 8523757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:29:59+00:00 2026-06-11T07:29:59+00:00

I have a sub application underneath an IIS website, and I can deploy it

  • 0

I have a sub application underneath an IIS website, and I can deploy it using the publish wizard in Visual Studio no problem.

However, I’m automating our deployment from our build server so I prefer to use msdeploy.exe directly.

I can deploy the main website, but trying to deploy the sub application refuses to work.

This works (www.mymainwebsite.co.uk being the IIS website):

msdeploy.exe
-source:package=’www.mymainwebsite.co.uk\obj\Test\Package\www.mymainwebsite.co.uk.zip’
-dest:auto,computerName=’https://testweb1:8172/MsDeploy.axd?site=www.mymainwebsite.co.uk’,userName=’xxx’,password=’xxx’,authtype=’Basic’,includeAcls=’False’
-verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:”www.mymainwebsite.co.uk\obj\Test\Package\www.mymainwebsite.co.uk.SetParameters.xml”
-allowUntrustedInfo

This doesn’t (SubApplication being the application path):

msdeploy.exe
-source:package=’SubApplication\obj\Test\Package\SubApplication.zip’
-dest:auto,computerName=’https://testweb1:8172/MsDeploy.axd?site=www.mymainwebsite.co.uk/SubApplication‘,userName=’xxx’,password=’xxx’,authtype=’Basic’,includeAcls=’False’
-verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:”SubApplication\obj\Test\Package\SubApplication.SetParameters.xml”
-allowUntrustedInfo

The error is:

Error Code: ERROR_USER_UNAUTHORIZED
More Information: Connected to the remote computer ("testweb1") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.
Error: The remote server returned an error: (401) Unauthorized.

As I said, this works from the Visual Studio publish wizard, setting the Site/application property to http://www.mymainwebsite.co.uk/SubApplication, so I know it’s not a permissions issue on the server.

Am I missing something in the msdeploy parameters?

  • 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-11T07:30:00+00:00Added an answer on June 11, 2026 at 7:30 am

    I use the following on the command line to set the web application:

    -setParam:name="IIS Web Application Name",value="www.mymainwebsite.co.uk/SubApplication"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a problem to distributing application with 2 project (one project with sub-project
I have created a drop down in my android application using a spinner. However
I have an application in vb.net that starts with a sub function do some
I have a main application, and a bunch of sub-applications (they are separate apps,
I have several tabs in my application, and each tab loads a different sub-page
I have one application that contains sub-applications. I would like to segregate the GIN
I need to parse files generated by a third-party application. Using ANTLR, I have
Inside of my MVC application, I have a sub-folder named Admin that was Converted
I have a J2EE application compound by three sub-applications, installed on a WebSphere Application
I have MVC3 web application running under IIS 7. During initialization in global.asax application

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.