I've temporarily rolled back to 1.4.3 as I've got an important build
coming up.  Once it's done I'll give 1.4.4 a try again with your
workaround.

Thanks,
Dustin

On Jun 1, 4:51 pm, "Craig & Sammi Sutherland"
<[email protected]> wrote:
> Hi Dustin,
>
> I think you've found a bug in CC.NET. We do have one thing that you can try
> as a work-around. Can you try adding a logger element to the msbuild tasks,
> like follows:
>       <msbuild>
>         <executable>$(msbuildPath)</executable>
>         <workingDirectory>$(classicOntakeBuildPath)</workingDirectory>
>         <projectFile>SetupBuild.proj</projectFile>
>         <targets>Build</targets>
>         <buildArgs>/nologo /noconsolelogger /p:SvnPath=&quot;$(svnPath)
> &quot;;SvnCertsReposUrl=$(svnCertsOntakeReposUrl)</buildArgs>
>         <timeout>600</timeout>
>         <description>Preparing build environment</description>
>         <logger>C:\Program
> Files\CruiseControl.NET\Server\ThoughtWorks.CruiseControl.MsBuild.dll</logg­e
> r>
>       </msbuild>
>
> You'll need to make sure the directory is the directory you installed CC.NET
> to.
>
> I'll also raise this as an issue so it gets fixed.
>
> Craig
>
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of Dustin Norman
> Sent: Tuesday, 2 June 2009 8:40 a.m.
> To: ccnet-user
> Subject: [ccnet-user] Re: Upgraded to 1.4.4 and now build fails
>
> Here are the tasks for the build:
>
>     <tasks>
>       <msbuild>
>         <executable>$(msbuildPath)</executable>
>         <workingDirectory>$(classicOntakeBuildPath)</workingDirectory>
>         <projectFile>SetupBuild.proj</projectFile>
>         <targets>Build</targets>
>         <buildArgs>/nologo /noconsolelogger /p:SvnPath=&quot;$(svnPath)
> &quot;;SvnCertsReposUrl=$(svnCertsOntakeReposUrl)</buildArgs>
>         <timeout>600</timeout>
>         <description>Preparing build environment</description>
>       </msbuild>
>       <msbuild>
>         <executable>$(msbuildPath)</executable>
>         <workingDirectory>$(classicOntakeBuildPath)</workingDirectory>
>         <projectFile>BuildAll.proj</projectFile>
>         <targets>Build</targets>
>         <buildArgs>/nologo /noconsolelogger /p:DBDocumentorPath=&quot;$
> (dbDocumentorPath)&quot;;LatestAAMKitPath=&quot;$
> (latestAAMOntakeKitPath)
> &quot;;KitProjectName=Ontake;PreReleaseBuild=False</buildArgs>
>         <timeout>7200</timeout>
>         <description>Building agent, server and media</description>
>       </msbuild>
>       <msbuild>
>         <executable>$(msbuildPath)</executable>
>         <workingDirectory>$(classicOntakeBuildPath)</workingDirectory>
>         <projectFile>PostBuild.proj</projectFile>
>         <targets>Build</targets>
>         <buildArgs>/nologo /noconsolelogger /
> p:BVTProjectName=&quot;Ontake&quot;</buildArgs>
>         <timeout>600</timeout>
>         <description>Performing post-build operations</description>
>       </msbuild>
>       <msbuild>
>         <executable>$(msbuildPath)</executable>
>         <workingDirectory>$(classicOntakeBuildPath)</workingDirectory>
>         <projectFile>TearDownBuild.proj</projectFile>
>         <targets>Build</targets>
>         <buildArgs>/nologo /noconsolelogger /p:SvnPath=&quot;$(svnPath)
> &quot;</buildArgs>
>         <timeout>600</timeout>
>         <description>Tearing down build environment</description>
>       </msbuild>
>     </tasks>
>
> The weird part is that it looks like the last task is actually
> executing.  Here is the log output:
>
> <msbuild startTime="05/29/2009 17:12:54" elapsedTime="00:00:15"
> success="true">
>   <project name="Build" file="D:\Builds\Classic\BuildSource\Ontake
> \Source\Build\TearDownBuild.proj" success="true">
>     <target name="Build" success="true">
>       <message level="high"><![CDATA[Restoring certs directory from
> buildparts repository]]></message>
>       <message level="high"><![CDATA[rename D:\Builds\Classic
> \BuildSource\Ontake\Source\BuildParts\certs certs_secure]]></message>
>       <message level="high"><![CDATA[rename D:\Builds\Classic
> \BuildSource\Ontake\Source\BuildParts\certs_back certs]]></message>
>       <message level="high"><![CDATA["C:\Program Files\CollabNet
> Subversion\svn.exe" commit ..\ --message "Updated build numbers, etc."
> --non-interactive --no-auth-cache]]></message>
>       <message level="high"><![CDATA[Sending        Source\Agent
> \FbMonitor\Properties\AssemblyInfo.cs]]></message>
>       <message level="high"><![CDATA[Sending        Source\Agent
> \Include\buildver.h]]></message>
>       <message level="high"><![CDATA[Sending        Source\Agent
> \Receiver\EdgeSightEPAgent.xml]]></message>
>       <message level="high"><![CDATA[Sending        Source\Agent
> \Receiver\EdgeSightEPAgentx64.xml]]></message>
>       <message level="high"><![CDATA[Sending        Source\Common
> \include\common_buildver.h]]></message>
>       <message level="high"><![CDATA[Sending        Source\Server
> \Citrix.SystemMonitoring.EdgeSight\Common\CoreAssemblyInfo.cs]]></
> message>
>       <message level="high"><![CDATA[Sending        Source\Server
> \Include\buildver.h]]></message>
>       <message level="high"><![CDATA[Sending        Source\Server
> \Install\WixSource\pages.wxs]]></message>
>       <message level="high"><![CDATA[Sending        Source\Server\SQL
> \Schema\full_schema.sql]]></message>
>       <message level="high"><![CDATA[Transmitting file data .........]]
> ></message>
>       <message level="high"><![CDATA[Committed revision 978.]]></
> message>
>       <message level="high"><![CDATA[Unmapping W:]]></message>
>       <message level="high"><![CDATA[subst W: /D]]></message>
>       <message level="high"><![CDATA[Unmapping X:]]></message>
>       <message level="high"><![CDATA[subst X: /D]]></message>
>     </target>
>   </project>
> </msbuild>MSBUILD : error MSB1021: Cannot create an instance of the
> logger. Could not load file or assembly 'C:\\Documents and Settings\
> \build\\Local Settings\\Application Data\\assembly\\dl3\\L4LPPRCO.WLA\
> \A45BEZVR.NAV\\0f2e8763\\bcf52c7d_28e2c901\
> \ThoughtWorks.CruiseControl.MsBuild.dll' or one of its dependencies.
> The given assembly name or codebase was invalid. (Exception from
> HRESULT: 0x80131047)
> Switch: C:\Documents and Settings\build\Local Settings\Application Data
> \assembly\dl3\L4LPPRCO.WLA\A45BEZVR.NAV
> \0f2e8763\bcf52c7d_28e2c901\ThoughtWorks.CruiseControl.MsBuild.dll;D:
> \Builds\Classic\Logs\Ontake\msbuild-results.xml
>
> But it doesn't look like any of the other tasks ran.  Very, very
> weird.
>
> Thanks,
> Dustin
>
> On Jun 1, 4:35 pm, Craig Sutherland <[email protected]> wrote:
> > Can you send us your ccnet.config that is using this? Or at least the
> > relevant part of the config.
>
> > Craig
>
> > On Jun 2, 8:29 am, Dustin Norman <[email protected]> wrote:
>
> > > I upgraded this morning to 1.4.4 from 1.4.3 and now my builds are
> > > failing with the following error:
>
> > > MSBUILD : error MSB1021: Cannot create an instance of the logger.
> > > Could not load file or assembly 'C:\\Documents and Settings\\build\
> > > \Local Settings\\Application Data\\assembly\\dl3\\L4LPPRCO.WLA\
> > > \A45BEZVR.NAV\\0f2e8763\\bcf52c7d_28e2c901\
> > > \ThoughtWorks.CruiseControl.MsBuild.dll' or one of its dependencies.
> > > The given assembly name or codebase was invalid. (Exception from
> > > HRESULT: 0x80131047)
> > > Switch: C:\Documents and Settings\build\Local Settings\Application Data
> > > \assembly\dl3\L4LPPRCO.WLA\A45BEZVR.NAV
> > > \0f2e8763\bcf52c7d_28e2c901\ThoughtWorks.CruiseControl.MsBuild.dll;D:
> > > \Builds\Classic\Logs\Ontake\msbuild-results.xml
>
> > > I have ThoughtWorks.CruiseControl.msBuild.dll in my CruiseControl.NET
> > > \server directory but it definitely is not at the path listed in the
> > > error message.  What do I have to do to fix this?
>
> > > Thanks,
> > > Dustin- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Reply via email to