Hi

so you got a new 2008 R2 server, and want to move an existing CCNet 1.5 to
it, correct?

This should work :
° copy the files from original to new server
° create an application in IIS pointing to that folder.

but from the looks of it, you did this already

There were some things adjusted to be compatible for IIS 7 in one of the
versions.
it seems more like an IIS problem to me.

You could try the new version, I do not think there will be problems, but
no guarantees, this is not a scenario that I tested.
if you download CruiseControl.NET-1.8.5.0.zip, it is just copy binaries,
installation does not take that long, and you can easily go back.


Also check that .Net 3.5 is installed on the 2008 R2 server, CCNet 1.5 uses
that.
also do aspnet regiis after installing.

Below is the web.config of the 1.8.5 version, and there are some references
in it concerning IIS7.
maybe also worth merging that.

with kind regards
Ruben Willems







<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <!-- Change this if (for example) you want to keep your dashboard
config file under source control -->
        <add key="DashboardConfigLocation" value="dashboard.config" />

    <!-- Change this to force the dashboard to use the specified langauge :
example en-US -->
    <add key="language" value="" />

  </appSettings>

    <system.web>
        <httpHandlers>
            <!-- Yes, we are overriding .aspx - don't delete this! We are
using .aspx since we know it is already bound to ASP.NET. In future we
might use a
                different extension so that people can add their own ASP.NET
pages if they want to, but we should make sure in that case to change how
                URLs are created -->
            <add verb="*" path="*.aspx"
type="ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler,ThoughtWorks.CruiseControl.WebDashboard"
         />  <!-- preCondition="integratedMode"     adding this attribute
can solve problems on IIS7 and CCNet 1.5+   -->
      <add verb="*" path="*.xml"
type="ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler,ThoughtWorks.CruiseControl.WebDashboard"
         />       <!-- preCondition="integratedMode"     adding this
attribute can solve problems on IIS7 and CCNet 1.5+   -->
    </httpHandlers>

    <!-- when running CCNet in a ASP.Net 4.0 environment
         according to
http://www.asp.net/whitepapers/aspnet4/breaking-changes
    <httpRuntime requestValidationMode = "2.0" />
    -->


        <compilation defaultLanguage="c#" debug="true" />

    <customErrors mode="RemoteOnly" />

    <authentication mode="Windows" />
        <!--  APPLICATION-LEVEL TRACE LOGGING
            Application-level tracing enables trace log output for every
page within an application.
            Set trace enabled="true" to enable application trace logging.
If pageOutput="true", the
            trace information will be displayed at the bottom of each
page.  Otherwise, you can view the
            application trace log by browsing the "trace.axd" page from
your web application
            root.
        -->
        <trace
            enabled="false"
            requestLimit="10"
            pageOutput="true"
            traceMode="SortByTime"
            localOnly="true"
        />
        <sessionState mode="InProc" stateConnectionString="tcpip=
127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user
id=sa;password="
            cookieless="false" timeout="20" />
        <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
    </system.web>

  <!-- Handle backwards compatibility with previous versions of
NetReflector (for plug-ins etc.) -->
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="NetReflector"
publicKeyToken="2f4dd8b32acbcd8e" culture="neutral" />
        <bindingRedirect oldVersion="1.0.0.120" newVersion="1.1.2009.1214"/>
      </dependentAssembly>
    </assemblyBinding>

  </runtime>

  <!-- Enable the handles in IIS 7.0 or later-->
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add verb="*" path="*.aspx"
type="ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler,ThoughtWorks.CruiseControl.WebDashboard"
name="CCNetHttpHandler"/>
      <add verb="*" path="*.xml"
type="ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler,ThoughtWorks.CruiseControl.WebDashboard"
name="CCNetXmlHandler"/>
    </handlers>
  </system.webServer>

</configuration>






On 10 June 2014 21:21, Andy Levy <[email protected]> wrote:

> I am attempting to get the CCNet 1.5 Web Dashboard up and running on a
> Server 2008 R2 (IIS7) server and encountering errors with the configuration.
>
> This is intended to be a like-for-like replacement of our existing web
> dashboard which currently resides on a Server 2003 box which needs to be
> retired. Upgrading the dashboard is not an option unless the newer version
> is compatible with our other CCNet 1.5 servers that it's
> watching/controlling (upgrading the whole environment is out of scope for
> my current project).
>
> After installing, adding the physical path for the app as a virtual
> directory, and adding it to the default app pool, I'm getting the following
> error:
>
> It is an error to use a section registered as
> allowDefinition='MachineToApplication' beyond application level.  This
> error can be caused by a virtual directory not being configured as an
> application in IIS.
>
> Line 18 of Web.config (setting authentication mode to Windows) is
> highlighted.
>
> If I comment out this line, I get the same error but for the sessionState
> node (lines 33-34).
>
> Commenting that node out, I get an exception loading an assembly (I'll
> skip the stack trace, unless it's necessary):
>
> System.IO.FileNotFoundException: Could not load file or assembly
> 'ThoughtWorks.CruiseControl.WebDashboard' or one of its dependencies. The
> system cannot find the file specified.
>
> The following windows features are installed:
>
> Web-Server
> Web-WebServer
> Web-Common-Http
> Web-Default-Doc
> Web-Dir-Browsing
> Web-Http-Errors
> Web-App-Dev
> Web-Asp-Net
> Web-ISAPI-Ext
> Web-ISAPI-Filter
> Web-Health
> Web-Http-Logging
> Web-Request-Monitor
> Web-Security
> Web-Windows-Auth
> Web-Filtering
> Web-Mgmt-Tools
> Web-Mgmt-Console
>
> Searching for the first error encountered does not seem to yield any
> results that apply to my situation (as far as I can tell). What do I need
> to do to get this up and running?
>
> Thanks.
>
> --
>
> ---
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to