← Back to team overview

nunit-core team mailing list archive

Re: [Bug 1064804] Re: Test throws an exception in NUnit but works when running in MSTest or as a Console application

 

Hmm, not very helpful, I'm afraid. Let's see if Charlie has any other
ideas. We might also consider inspecting a crash dump if you can generate
one.
In some of the links I sent they suggested that updating to a more recent
version of the Business Connector might solve the problem, do you have any
chance to try it?

On Wed, Oct 10, 2012 at 2:56 PM, Mun Wai Chan
<munwai@xxxxxxxxxxxxxxxxxxxx>wrote:

> Hi Simone,
>
> I did what you said as above.
>
> 1) Compiled it as .Net 2.0 and x86.
> 2) Remove the config changes.
> 3) Run nunit-console-x86
>
> And it still crashes. The event logs are below.
>
> 1) .NET Runtime version 2.0.50727.5456 - Fatal Execution Engine Error
> (79AFEABE) (80131506)
> 2) Faulting application name: nunit-console-x86.exe, version: 2.5.5.10112,
> time stamp: 0x4bd0d2b3
> Faulting module name: mscorwks.dll, version: 2.0.50727.5456, time stamp:
> 0x4ef6c72d
> Exception code: 0xc0000005
> Fault offset: 0x0000ee3b
> Faulting process id: 0x%9
> Faulting application start time: 0x%10
> Faulting application path: %11
> Faulting module path: %12
> Report Id: %13
>
>
> Mun Wai
>
> --
> You received this bug notification because you are a member of NUnit
> Developers, which is subscribed to NUnit V2.
> https://bugs.launchpad.net/bugs/1064804
>
> Title:
>   Test throws an exception in NUnit but works when running in MSTest or
>   as a Console application
>
> Status in NUnit V2 Test Framework:
>   New
>
> Bug description:
>   Hi,
>
>   I have a simple test which throws an error when I run it using NUnit
>   (fails on both NUnit GUI/console and Resharper in VS). However, if ran
>   using Visual Studio's Test -> Debug option or as a Console
>   application, it runs fine. The code is exactly the same for the 3
>   different projects types (NUnit, Console and MSTest).
>
>   Source code for NUnit test:
>
>   using System.Net;
>   using Microsoft.Dynamics.BusinessConnectorNet;
>   using Microsoft.VisualStudio.TestTools.UnitTesting;
>
>   namespace TestProject1
>   {
>       [TestClass]
>       public class UnitTest1
>       {
>           [TestMethod]
>           public void TestMethod1()
>           {
>               Axapta ax = new Axapta();
>               ax.LogonAs("User1", "Globe", new NetworkCredential("User1",
> "pwd", "Globe"), default(string),                       default(string),
> "A6BuildTestAos:6004", default(string));
>                ax.Logoff();
>           }
>       }
>   }
>
>   Error:
>
>   FatalExecutionEngineError was detected.
>   The runtime has encountered a fatal error. The address of the error was
> at 0x5785ca87, on thread 0x792c. The error code is 0xc0000005. This error
> may be a bug in the CLR or in the unsafe or non-verifiable portions of user
> code. Common sources of this bug include user marshaling errors for
> COM-interop or PInvoke, which may corrupt the stack.
>
>   Thanks in advance.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nunitv2/+bug/1064804/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~nunit-core
> Post to     : nunit-core@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~nunit-core
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1064804

Title:
  Test throws an exception in NUnit but works when running in MSTest or
  as a Console application

Status in NUnit V2 Test Framework:
  New

Bug description:
  Hi,

  I have a simple test which throws an error when I run it using NUnit
  (fails on both NUnit GUI/console and Resharper in VS). However, if ran
  using Visual Studio's Test -> Debug option or as a Console
  application, it runs fine. The code is exactly the same for the 3
  different projects types (NUnit, Console and MSTest).

  Source code for NUnit test:

  using System.Net;
  using Microsoft.Dynamics.BusinessConnectorNet;
  using Microsoft.VisualStudio.TestTools.UnitTesting;

  namespace TestProject1
  {
      [TestClass]
      public class UnitTest1
      {
          [TestMethod]
          public void TestMethod1()
          {
              Axapta ax = new Axapta();
              ax.LogonAs("User1", "Globe", new NetworkCredential("User1", "pwd", "Globe"), default(string),                       default(string), "A6BuildTestAos:6004", default(string));
               ax.Logoff();
          }
      }
  }

  Error:

  FatalExecutionEngineError was detected.
  The runtime has encountered a fatal error. The address of the error was at 0x5785ca87, on thread 0x792c. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

  Thanks in advance.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1064804/+subscriptions


References