126

I am trying to publish a website from my computer to an IIS web server via web deploy.

I have 3 servers. All servers have installed the same things (Webdeploy etc.) and the services are started (Web Deployment Agent Service and Web Management Service).

On the first server I have no problems on connecting. But the other two servers give me some error when I "Validate Connection" in Visual Studio to the IIS. When I look at the logs on the IIS server, there are my accesses listet with html code 200 (ok).

An error ocurred when the request was processed on the remote computer. Filename: MACHINE/WEBROOT

Error: The configuration section 'system.webServer/management/delegation' cannot be read because it is missing schema

I really have no idea what could solve this problem and hope you are able to help me.

1
  • 1
    Note that as web deploy is often used from Visual Studio via the Publish command this question is not actually off-topic and the limit of 5 tags prevents me from adding Visual Studio Commented May 5, 2017 at 9:16

3 Answers 3

144

I had the exact same problem, it turned out I had installed Web Deploy 3.6 on top of 3.5. Remove Web Deploy 3.6 and reinstall 3.5 and see if it solves your issue.

You can also try @james-wilkins comment below: "In my case I installed Web Deploy BEFORE installing the management service..."

12
  • 5
    Thank you very much. I found out that some components dont get installed propper when using Web Deploy 3.6. Uninstalling Web Deploy 3.6 and installing 3.5 helped to me. If you want to be on Web Deploy 3.6 you can uninstall 3.5 and reinstall 3.6 (the uninstallation from Web Deploy 3.5 does not uninstall the missed components, so Web Deploy 3.6 works fine when 3.5 was installed before).
    – lucamuh
    Commented Aug 21, 2015 at 14:21
  • 5
    Uninstalling Web Deploy 3.6 then installing 3.5 then 3.6 worked for me after an hour of headache. OS is Win Server 2012 R2. Thank you. Commented Aug 25, 2015 at 14:08
  • 4
    I had the exact same problem, I removed Web Deploy 3.5 and re-installed Web Deploy 3.6 Commented Oct 13, 2015 at 21:00
  • 89
    In my case I installed Web Deploy BEFORE installing the management service. I tried to to a "change" on the install to include the management service (or you can add the feature from add/remove windows features), but that didn't help (got the error on this post). In the end a simple uninstall and reinstall of 3.6 was what worked for me. Seems it needs the Web Management Service to be installed FIRST. Typical MS instructions don't even mention this at all. Commented May 4, 2016 at 22:26
  • 12
    I had exactly the same case as @JamesWilkins.
    – Jack Lu
    Commented May 15, 2016 at 13:53
130

Uninstall and then re-install Web Deploy.

This fixed the problem for me -- the 'repair' option in the installer did not.

1
  • 1
    I uninstalled Web Deploy v3.6 and installed v4.0 and its works. Commented Jul 5, 2022 at 12:05
42

In my case, I installed Web Deploy BEFORE installing the management service. I tried to do a "change" on the install to include the management service (or you can add the feature from add/remove windows features), but that didn't help (got the error on this post). In the end, a simple uninstall and reinstall of 3.6 was what worked for me. Seems it needs the Web Management Service to be installed FIRST. Typical MS instructions don't even mention this at all.

2
  • 1
    Exactly my problem. So weird, many of the Web Deploy features are not even available during the installation if you haven't installed WMSvc first.
    – marsze
    Commented Dec 18, 2018 at 9:48
  • This is true. Web Deploy must be installed after all. Check the follow link for troubleshooting learn.microsoft.com/en-us/iis/publish/…
    – JohnnyJaxs
    Commented Aug 5, 2019 at 12:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.