Hi Uniters,
after havin 5 hours of fun with System.IO.FileLoadException at start of NUnit.exe I found the reason.
I have in the test folder ProjectX.nunit configuration file for NUnit.exe(NUnit.exe with its instalation files is saved somewhere else) and in the same directory nunit.framework.dll from NUnit-Results.exe.
If I start ProjectX.nunit I get System.IO.FileLoadException exception because nunit.framework.dll manifest from NUnit.exe instalation seems not to be the same as nunit.framework.dll from NUnit-results.exe. Why both nunit.framework.dll are not the same?
Exception details:
System.IO.FileLoadException...
Server stack trace:
bei System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
bei System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
bei System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
bei System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
bei System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
bei System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
bei System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)
bei NUnit.Core.CoreExtensions.InstallAdhocExtensions(Assembly assembly)
bei NUnit.Core.Builders.TestAssemblyBuilder.Load(String path)
bei NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, Boolean autoSuites)
bei NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, String testName, Boolean autoSuites)
bei NUnit.Core.TestSuiteBuilder.Build(TestPackage package)
bei NUnit.Core.SimpleTestRunner.Load(TestPackage package)
bei NUnit.Core.ProxyTestRunner.Load(TestPackage package)
bei NUnit.Core.ProxyTestRunner.Load(TestPackage package)
bei NUnit.Core.RemoteTestRunner.Load(TestPackage package)
bei System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
bei System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
bei System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
bei NUnit.Core.TestRunner.Load(TestPackage package)
bei NUnit.Util.TestDomain.Load(TestPackage package)
bei NUnit.Util.TestLoader.LoadTest(String testName)
regards,
Milan.
Charlie what does it means status "Invalid" ?
Best regards,
Milan.
On Fri, Dec 11, 2009 at 4:51 PM, Charlie Poole <email address hidden> wrote: /bugs.launchpad .net/bugs/ 495479 IO.FileLoadExce ption at start of NUnit.exe I found the reason. IO.FileLoadExce ption exception because nunit.framework.dll manifest from NUnit.exe instalation seems not to be the same as nunit.framework.dll from NUnit-results.exe. Why both nunit.framework.dll are not the same? IO.FileLoadExce ption.. . ModuleHandle. ResolveType( Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount) ModuleHandle. ResolveTypeHand le(Int32 typeToken, RuntimeTypeHandle[] typeInstantiati onContext, RuntimeTypeHandle[] methodInstantia tionContext) Reflection. Module. ResolveType( Int32 metadataToken, Type[] genericTypeArgu ments, Type[] genericMethodAr guments) Reflection. CustomAttribute .FilterCustomAt tributeRecord( CustomAttribute Record caRecord, MetadataImport scope, Assembly& lastAptcaOkAsse mbly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilter Type, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHa ndle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) Reflection. CustomAttribute .GetCustomAttri butes(Module decoratedModule, Int32 decoratedMetada taToken, Int32 pcaCount, RuntimeType attributeFilter Type, Boolean mustBeInheritable, IList derivedAttributes) Reflection. CustomAttribute .GetCustomAttri butes(RuntimeTy pe type, RuntimeType caType, Boolean inherit) RuntimeType. GetCustomAttrib utes(Type attributeType, Boolean inherit) CoreExtensions. InstallAdhocExt ensions( Assembly assembly) 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.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[] ar...
> ** Changed in: nunit-results
> Status: New => Invalid
>
> --
> Mismatch between NUnit's framework and nunit-result's framework
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in NUnit Test Result Reporting: Invalid
>
> Bug description:
>
> Hi Uniters,
>
> after havin 5 hours of fun with System.
> I have in the test folder ProjectX.nunit configuration file for NUnit.exe(NUnit.exe with its instalation files is saved somewhere else) and in the same directory nunit.framework.dll from NUnit-Results.exe.
>
> If I start ProjectX.nunit I get System.
>
>
> Exception details:
>
> System.
>
> Server stack trace:
> bei System.
> bei System.
> bei System.
> bei System.
> bei System.
> bei System.
> bei System.
> bei NUnit.Core.
> bei NUnit.Core.
> bei NUnit.Core.
> bei NUnit.Core.
> bei NUnit.Core.
> bei NUnit.Core.
> bei NUnit.Core.
> bei NUnit.Core.
> bei NUnit.Core.
> bei System.