Dashboard missing in IIS 7/Win 7

Added by Paul Miller almost 5 years ago

Hi everyone,

I installed CruiseControl.Net, started to configure it, I'm impressed so far, thanks to everyone involved!

However, the Dashboard hasn't been added correctly to localhost/ccnet. I'm running Win 7 32bit, IIS 7 is installed. I manually added now the project via the IIS configuration manager.

Opening the dashboard with the default dashboard.config, now all I get is a Server 500 error in web.config (Google translate)

"This configuration section in this path can not be used. This is the case when the section is locked at a higher level. The blocking by default (override mode = "Deny") or explicitly allowOverride with a location tag with override mode = "Deny" or the Legacyeinstellung = "false"."

59: <validation validateIntegratedModeConfiguration="false" />
60: <handlers>
61: <add verb="*" path="*.aspx" type="ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler,ThoughtWorks.CruiseControl.WebDashboard" name="CCNetHttpHandler"/>

Q: What is the correct method to (re-)add the dashboard to my local IIS instance?

Many thanks,

Paul


Replies (6)

RE: Dashboard missing in IIS 7/Win 7 - Added by Paul Miller almost 5 years ago

Oops, that should have gone to "Help". Feel free to move it, if possible.

RE: Dashboard missing in IIS 7/Win 7 - Added by Ruben Willems almost 5 years ago

I faced (and solved) a bug in cc.net why migrating my existing asp.net websites from asp.net 2 to asp.net 4.

In our config, cctray connects not by remoting but by connecting to the webdashboard. It was working fine with asp.net 2 but no more with asp.net 4, leading to a 500 http error. The event log in Windows were displaying an error ID=1309: "A validation error has occurred. [...] http://[svrname]/CruiseControl/server/intranet/RawXmlMessage.aspx [...] A potentially dangerous Request.Form value was detected from the client (message="<serverMessage xmlns...")."

The answer for this is to add a subkey "<httpRuntime requestValidationMode = "2.0" />" (without the quote...) in the system.web node. More info there: http://msdn.microsoft.com/en-us/library/system.web.configuration.pagessection.validaterequest.aspx

RE: Dashboard missing in IIS 7/Win 7 - Added by Paul Miller almost 5 years ago

Thanks Ruben - I fear I have different issue at all.

Was /ccnet added automatically to your IIS instance?

Regards,
Paul

RE: Dashboard missing in IIS 7/Win 7 - Added by Paul Miller almost 5 years ago

During re-installation of only the dashboard, I think I found the culprit:

Searching for location of .NET framework version v2.0
Checking whether there is an existing virtual directory with the name ccnet
C:\Users\username\AppData\Local\Temp\createCCNetVDir.vbs(117, 2) (null): Invalid syntax

That's on a german Win 7 box.

Line 117:

Set iisRoot = GetObject("IIS://localhost/W3SVC/" & webSiteNumber & "/ROOT")

I'm not fluent in VBScript, unfortunately.

I'll file a bug for it.

Paul

RE: Dashboard missing in IIS 7/Win 7 - Added by Paul Miller almost 5 years ago

OK, looks like this interface used isn't there anymore in IIS 7.5 on Win 7.

http://stackoverflow.com/questions/9824406/how-can-i-get-the-default-web-with-vbscript-on-iis-windows-7

Activating "IIS 6 WMI Compatibility" solved it.

I re-ran the web dashboard installation.

Done!

RE: Dashboard missing in IIS 7/Win 7 - Added by Mehrdad Mirreza over 3 years ago

I have the same issue with IIS 7 but on Windows Server 2008 R2. Activating "IIS 6 WMI Compatibility" doesn't resolve the problem in my case. I still get the error on line 117 (Code 80070003)

(1-6/6)