Skip to content

Can't get a good deploy command to come out of this #79

Open
@rmagruder

Description

Sayed, I hope you're seeing these updates...

Trying now for several days to get this to work, have run Google into the ground, and still getting nowhere. Maybe I'm just missing something important.

When I look at the command that gets run from Publish-Interactive.ps1, it's like this (redacted as needed)

C:\temp\MyService>"C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:archiveDir="C:\Users\RMAGRU1\AppData\Local\Temp\MyService_zip" -dest:auto,includeAcls='False',ComputerName='https://targetServer:8172/msdeploy.axd?site=Default Web Site?site=Default Web Site/MyService',Username=mydomain\myuser,Password=mypassword,AuthType='basic' -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtens
ion -setParamFile:"C:\Users\RMAGRU
1\AppData\Local\Temp\MyService_zip\SetParameters.xml" -skip:objectName=dirPath,absolutePath="Deploy" -skip:objectName=filePath,absolutePath=web...config -skip:objectName=dirPath,absolutePath=
Package -skip:objectName=filePath,absolutePath=._.wpp.targets$ -allowUntrusted -enableRule:DoNotDelete

The site doesn't exist on the server, but "Default Web Site" sure does. I have full rights to add sites, remote in, etc, from the user name I'm specifying, but the 'MyService' site doesn't exist.
I notice above that we get TWO "?site" parameters onto the .axd command line. I'm assuming that since "MyService" doesn't exist, that's causing the problem? It should just be going to "Default Web Site", but it seems like the IIS Web Application name is being appended to that, and thus breaking it. I have managed to get msdeploy to work from a regular command prompt from the same machine but that's using the dump from Visual Studio of its msdeploy.exe, using the manifest rather than the archive source.

I hope you have some thoughts, because I'm feeling like I'm dealing with a magic incantation instead of a piece of software, and I can't get the spell right.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions