Re: NUnit Failure with net-2.0

"Mark Mayo" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user,gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
Hi Gert, Thanks for the quick reply.

Got the stack trace:

BUILD FAILED

Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target
framework.

    The file exists.


Stacktrace:

Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target
framework.:
NAnt.Core.BuildException: Failed to initialize the 'Microsoft .NET Framework
2.0' (net-2.0) target framework. ---> System.IO.IOException: The file
exists.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.__Error.WinIOError()
   at System.IO.Path.GetTempFileName()
   at NAnt.Core.FrameworkInfo.PerformInit()
   at NAnt.Core.FrameworkInfo.Init()
   --- End of inner exception stack trace ---
   at NAnt.Core.FrameworkInfo.Init()
   at NAnt.Core.FrameworkInfo.Validate()
   at NAnt.Core.ProjectSettingsLoader.ConfigureRuntimeFramework()
   at NAnt.Core.ProjectSettingsLoader.ProcessPlatform(XmlNode platformNode)
   at NAnt.Core.ProjectSettingsLoader.ProcessSettings()
   at NAnt.Core.Project.CtorHelper(XmlDocument doc, Level threshold, Int32
indentLevel, Optimizations optimization)
   at NAnt.Core.Project..ctor(String uriOrFilePath, Level threshold, Int32
indentLevel)
   at NAnt.Core.ConsoleDriver.Main(String[] args)
]]>

If you're still convinced, then sure, we can move it across.

Thanks,

Mark


On Wed, Jun 18, 2008 at 3:15 PM, Gert Driesen <[email protected]>
wrote:

>  Mark,
>
> Running NAnt in debug should at least give you a stacktrace that we can use
> to find the cause.
>
> I'm convinced this isn't a NUnit issue, so perhaps we should move this
> thread to the nant-users mailing list.
>
> Gert
>
>  *From:* Mark Mayo <[email protected]>
> *Sent:* Wednesday, June 18, 2008 4:10 PM
> *To:* [email protected]
> *Subject:* [Nunit-users] NUnit Failure with net-2.0
>
> Hi,
>
> I'm using Cruisecontrol to automate the running of NUnit tests here.  All
> is going relatively well, however every so often I'm running into an issue,
> which thus far we've only managed to clear by reimaging the box.  Restarts
> don't quite seem to cut it. :)
>
> For the purpose of environment, I'm running this using NUnit 2.4.6, on
> Windows Server 2003 R2 Enterprise, with Service Pack 1.  I also have the
> .NET Framework 2.0 Service Pack 1 installed, and have even tried it with
> .NET 3.0, to no avail.  I'm using nant 0.86.2898, and have tried with nant
> 0.85 as well.
>
> When running the tests through the NUnit GUI, they all run as expected.
> This is once more with NUnit 2.4.6.
>
> With the nunit-console in my overnight tests, however, they also run as
> expected for days, sometimes weeks, and then one day at random - quite often
> when nobody has touched the source code or machine in days, the tests won't
> run and I'll be presented with this:
>
> NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
> Copyright (C) 2001-2007 Gerry Shaw
> http://nant.sourceforge.net
>
>
> For more information regarding the cause of the build failure, run the
> build again in debug mode.
>
> Try 'nant -help' for more information
> log4net: Hierarchy: Shutdown called on Hierarchy
> [log4net-default-repository]
>
>
> BUILD FAILED
>
> Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target
> framework.
>
>     The file exists.
>
> ]]>
>
>
>
> Now, nowhere can I find out which file exists, or why that's a problem,
> and furthermore I can't fathom why that doesn't seem to cause a problem when
> run through the GUI?
>
> I did run nant in debug mode, but it didn't seem to add much useful at that
> point in the process.
>
> Any help appreciated.
>
> Mark Mayo
>
> ------------------------------
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
>
> ------------------------------
>
> _______________________________________________
> Nunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nunit-users
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.