Web Dashboard Configuration

77 views
Skip to first unread message

Hans Schleichert

unread,
May 23, 2016, 3:14:16 AM5/23/16
to ccnet-user
Hi all,

does anyone have a running example for configuring the Web Dashboard? I am using the latest CC.net (1.8.5.0) on a Windows Server 2012R2 machine. What I get, so far:
  • When I browse to http://localhost/ccnet/ on the machine where CC.net and the dashboard are installed, I receive a NullReferenceException. Any idea how to find the reason?
  • When I browse to http://<server>/ccnet/ from some other machine in the same domain, I get Error 403 - Forbidden: Access is denied. Any firewall settings needed?

As for the exception, this is the full message:


Server Error in '/ccnet' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler.ProcessRequest(HttpContext context) +43
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +598
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +170


Version Information: Microsoft .NET Framework Version:2.0.50727.8009; ASP.NET Version:2.0.50727.8015


Thank you for any insights.


Hans


Hans Schleichert

unread,
May 30, 2016, 3:21:30 AM5/30/16
to ccnet-user
In the meantime, I started debugging the code, and found this: In the context that is passed into the ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler.ProcessRequest function, the Session is null. This, of course, leads to an exception in the very first line of this function:
CruiseObjectSourceInitializer sourceSetup = (CruiseObjectSourceInitializer)context.Session[CruiseObjectSourceInitializerName];
Since the session is created by IIS, I assume I have a configuration issue. Any ideas?


Benjamin Baumann

unread,
May 30, 2016, 5:39:39 AM5/30/16
to ccnet...@googlegroups.com
Hi Hans,

Do you have some more information in the event viewer? I'm also in need of your web.config file.

Regards,
Benjamin

--

---
You received this message because you are subscribed to the Google Groups "ccnet-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ccnet-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hans Schleichert

unread,
May 30, 2016, 7:07:24 AM5/30/16
to ccnet-user
Hi Benjamin, thank you for your reply. I will try to attach the information you requested:
  • Eventlog.txt contains the only related entry in the event log which I could find. It was in the "application" category of "Windows logs".
  • Web.config is located at "C:\Program Files (x86)\CruiseControl.NET\webdashboard". I verified that this file is used (when I write rubbish into the file, the error message which the browser displayes becomes a different one).
The "CruiseControl.NET Server" service is running (just in case it makes a difference). I aso started the "ASP.NET State Service" although, in my understanding, it is not required in this configuration.

Best
Hans
Eventlog.txt
Web.config

Hans Schleichert

unread,
Jun 9, 2016, 3:48:46 AM6/9/16
to ccnet-user
I found the solution - special thanks to Benjamin for pointing me into the correct direction. I had failed to install ASP.NET when I installed IIS. After installing ASP.NET, the dashboard works.
When you use the Server Manager to install IIS, you would check the "Web Server (IIS)" item in the "Server Roles" step. To also install ASP.NET, open the "Web Server (IIS)" tree item, then open the "Web Server" tree, then open the "Application Development" tree, then check the required ASP.NET items.
The current version of CC.NET requires ASP.NET version 3.5.
Reply all
Reply to author
Forward
0 new messages