System.IO.FileNotFoundException when Platform target is not Any CPU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit V2 |
Fix Released
|
High
|
Charlie Poole |
Bug Description
I am using Windows 7 64 bit, Visual Studio 2010, GUI runner, NUnit 2.5.4.10098.
When I compile any program with Build option Platform target set not to Any CPU
(Platform target is not Any CPU) then I get this exception:
System.
Server stack trace:
at System.
at System.
at System.
at System.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at System.
at System.
Exception rethrown at [0]:
at System.
at System.
at NUnit.Core.
at NUnit.Util.
at NUnit.Util.
Related branches
Changed in nunitv2: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Charlie Poole (charlie.poole) |
milestone: | none → 2.5.5 |
status: | Triaged → Fix Committed |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
If you compile for x86, then you should run nunit-x86.exe. If you
compile for any other target
then nunit.exe should do the job. Can you list the combinations of
target and executable
for which you see this problem?
Charlie
On Mon, Apr 19, 2010 at 1:41 PM, Robert Dzikowski <email address hidden> wrote: IO.FileNotFound Exception. .. Reflection. Assembly. _nLoad( AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotF ound, Boolean forIntrospection) Reflection. Assembly. InternalLoad( AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) Reflection. Assembly. InternalLoad( String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) Reflection. Assembly. Load(String assemblyString) Builders. TestAssemblyBui lder.Load( String path) Builders. TestAssemblyBui lder.Build( String assemblyName, Boolean autoSuites) Builders. TestAssemblyBui lder.Build( String assemblyName, String testName, Boolean autoSuites) TestSuiteBuilde r.BuildSingleAs sembly( TestPackage package) TestSuiteBuilde r.Build( TestPackage package) SimpleTestRunne r.Load( TestPackage package) ProxyTestRunner .Load(TestPacka ge package) ProxyTestRunner .Load(TestPacka ge package) RemoteTestRunne r.Load( TestPackage package) Runtime. Remoting. Messaging. StackBuilderSin k._PrivateProce ssMessage( IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) Runtime. Remoting. Messaging. StackBuilderSin k.SyncProcessMe ssage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Runtime. Remoting. Proxies. RealProxy. HandleReturnMes sage(IMessage reqMsg, IMessage retMsg) Runtime. Remoting. Proxies. RealProxy. PrivateInvoke( MessageData& msgData, Int32 type) TestRunner. Load(TestPackag e package) TestDomain. Load(TestPackag e package) TestLoader. LoadTest( String testName) IO.FileNotFound Exception when Platform target is not Any CPU /bugs.launchpad .net/bugs/ 566907
> Public bug reported:
>
> I am using Windows 7 64 bit, Visual Studio 2010, GUI runner, NUnit
> 2.5.4.10098.
>
> When I compile any program with Build option Platform target set not to Any CPU
> (Platform target is not Any CPU) then I get this exception:
>
> System.
>
> Server stack trace:
> at System.
> at System.
> at System.
> at System.
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> at System.
> at System.
>
> Exception rethrown at [0]:
> at System.
> at System.
> at NUnit.Core.
> at NUnit.Util.
> at NUnit.Util.
>
> ** Affects: nunitv2
> Importance: Undecided
> Status: New
>
> --
> System.
> https:/
> You received this bug notification because you are a member of NUnit
> Developers, which is subscribed to NUnit V2.
>