Ed James
Ed James

Reputation: 10572

MSDeploy issues (WMSVC 500 error)

Having some issues with MSDeploy on a windows server 2008 box, the internal service is throwing a 500 error without putting anything in the server's event logs.

I'm attempting to setup automated deployments using MSBuild/TeamCity/MSDeploy, and this is basically the current halting point, has anyone come across this issue before?

Thanks, Ed

Upvotes: 3

Views: 1593

Answers (1)

Kev
Kev

Reputation: 119856

To find out why you are getting this error you should enable logging.

First, enable Failed Request Tracing for the web management service. You can see how to do this by referring to the "Optional: Set Up Tracing" section of this article:

http://learn.iis.net/page.aspx/984/configure-web-deploy/

The "frebs" can be found in:

C:\inetpub\logs\wmsvc\TracingLogFiles\W3SVC1

Open each of the frXXXXXX.xml files with IE and it'll use the freb.xsl transform to generate a nice report.

Don't delete freb.xsl when you're done, it doesn't always get recreated.

Then turn on logging for the web management service:

http://technet.microsoft.com/en-us/library/ff729437(WS.10).aspx

You want to have the following registry entry configured:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IIS Extensions\MSDeploy\1]
"EnabledTraceLevel"=dword:00000002
"EnabledTraceSources"=dword:000001ff

You can fiddle with the tracing levels/sources to increase and decrease the verbosity of the logs.

As per the article the management service logs are written to:

%WINDIR%\ServiceProfiles\LocalService\AppData\Local\Temp\WMSvc.log

Upvotes: 4

Related Questions