COM references

  • Thread starter Thread starter C# beginner
  • Start date Start date
C

C# beginner

Hi all
I posted this question earlier today. I did not get many
resposes. Please help me out with this problem. Thanks a
lot.
----------------------------------------------------------
I have two .NET applications, one is a C# class library
that interoperates with COM and the other is a C# windows
application that tests the C# class library. My test
application was working fine and so was my class library.

Earlier, I had problems with my C# class libary, so I had
to fix the project references (the COM wrapper
references). Since I did that, my test app is broke and I
don't know how to fix it. When I try to instantiate a
class from my class library in my test application, I am
getting the following exception.

An unhandled exception of
type 'System.IO.FileNotFoundException' occurred in
TestApplication.exe

Additional information: File or assembly name
COMReference.NET, or one of its dependencies was not found.

where COMReference.NET is the .NET wrapper for a COM
component referenced by the C# class library.

Kindly help me out. Thanks.

..
 
It sounds like you have to re-generate the COM wrapper. Try deleting from
the project and re-do with Add Reference - Browse to the COM component and
add it to re-generate the wrapper.
--
--------------------------------------------------------------
Sam Gentile [C#/.NET MVP]
..NET Blog http://samgentile.com/blog/
MSDN Column:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/bridge.asp
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top