WebDeploy

Thomas Dahlberg's Avatar

Thomas Dahlberg

15 Apr, 2015 08:48 AM

I'm trying to publish a web package to an iis but i get this error:

Deployment job started
Found 1 deployable artifacts.
Deploying Web application Portal.Web
Downloading artifact package Portal.Web.zip (10 695 597 bytes)
Website 'Portal-Web' already exists.
 - Application pool: Portal-Web
 - Website root directory: C:\appveyor\projects\portal\applications\Portal.Web
Application path with expanded environment variables: C:\appveyor\projects\portal\applications\Portal.Web
Updating website bindings to:
 - http *:80:portal.testzedcom.se
Updating web site Portal-Web/Portal-Web contents from WebDeploy package C:\Windows\TEMP\w0rz421p.2kg\Portal.Web.zip
Info: Adding MSDeploy.contentPath (MSDeploy.contentPath).
Info: Adding virtual path (.)
Site '.' does not exist.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SITE_DOES_NOT_EXIST.

The settings is as folows:

Portal.Web.deploy_website: true
Portal.Web.site_name: Portal-Web
Portal.Web.application_name: Portal-Web
Portal.Web.hostname: portal.test.se
Portal.Web.Port: 80
Portal.Web.protocol: http

Am I doing something wrong?

  1. Support Staff 1 Posted by Feodor Fitsner on 15 Apr, 2015 01:35 PM

    Feodor Fitsner's Avatar

    What was the reason you specified "application_name"? It's s virtual directory - if you don't need deploying it under virtual directory try removing that setting.

    - Feodor

  2. 2 Posted by Thomas Dahlberg on 15 Apr, 2015 06:29 PM

    Thomas Dahlberg's Avatar

    The reason was that i got that error message... So i get the same error both with and without application_name.

  3. Support Staff 3 Posted by Feodor Fitsner on 15 Apr, 2015 06:43 PM

    Feodor Fitsner's Avatar

    How do you build Portal.Web.zip artifact? What IIS version (or OS) is that? Also, there is discrepancy in settings and the log: portal.test.se and portal.testzedcom.se. Have you tried deleting that site?

  4. 4 Posted by Thomas Dahlberg on 16 Apr, 2015 06:25 AM

    Thomas Dahlberg's Avatar

    I attached my appveyor.yml file for the project.

    I've changed from portal.testzedcom.se to portal.test.se and back again. Removed the site between.

    I am trying to deploy to windows 2012 and IIS 8.5.9600.16384

  5. 5 Posted by Thomas Dahlberg on 16 Apr, 2015 08:54 AM

    Thomas Dahlberg's Avatar

    I think i solved it. New yml-file attached if anyone else has the same problem.

  6. Support Staff 6 Posted by Feodor Fitsner on 16 Apr, 2015 04:47 PM

    Feodor Fitsner's Avatar

    By marking artifact as WebDeployPackage you won't change its internal structure - it's still what it is - zip file. If you want to deploy from zip then remove type: WebDeployPackage from artifacts definition. Otherwise, if you need to have Web Deploy package you may try using automatic WAP packaging in build section:

    build:
      project: src\Portal.sln
      verbosity: minimal
      publish_wap: true
    
  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:55 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac