← Back to team overview

nunit-core team mailing list archive

[Bug 882750] [NEW] Isolated COM class referenced in the test DLL not found

 

Public bug reported:

Create .Net ClassLibrary1 that references a registered COM component and
contains a class with a [TestCase] method which uses the COM object. Set
Isolated in the References to true [that will add ClassLibrary1.manifest
with <file> section]. Unregister the COM component. The nunit test will
fail with:

 Test Error : ClassLibrary1.Class1.test()
   System.Runtime.InteropServices.COMException : Retrieving the COM class factory for component with CLSID {###} failed due to the following error: 80040154.
   at ClassLibrary1.Class1.test() in C:\temp\Projects\ConsoleApplication1\ClassLibrary1\Class1.cs:line 13

An C# console application that references the ClassLibrary1 wil work
fine.

** Affects: nunitv2
     Importance: Undecided
         Status: New


** Tags: com

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

Title:
  Isolated COM class referenced in the test DLL not found

Status in NUnit V2 Test Framework:
  New

Bug description:
  Create .Net ClassLibrary1 that references a registered COM component
  and contains a class with a [TestCase] method which uses the COM
  object. Set Isolated in the References to true [that will add
  ClassLibrary1.manifest with <file> section]. Unregister the COM
  component. The nunit test will fail with:

   Test Error : ClassLibrary1.Class1.test()
     System.Runtime.InteropServices.COMException : Retrieving the COM class factory for component with CLSID {###} failed due to the following error: 80040154.
     at ClassLibrary1.Class1.test() in C:\temp\Projects\ConsoleApplication1\ClassLibrary1\Class1.cs:line 13

  An C# console application that references the ClassLibrary1 wil work
  fine.

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


Follow ups

References