473,385 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

COM references

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.

..
Nov 15 '05 #1
1 1126
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/de...tml/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.
---------------------------------------------------------------
"C# beginner" <an*******@discussions.microsoft.com> wrote in message
news:4c****************************@phx.gbl...
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.

.

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: xmp333 | last post by:
Hi All, I am trying to hide my JavaScript source. The method I chose was to keep all the important source in a password protected folder, and then use a SRC="folder/script.js" to include it...
2
by: S. van Beek | last post by:
Dear reader, For removing a reference in the VBA reference form I receive from Doug Steele the following code: ........... References.Remove refCurr
30
by: jeremygetsmail | last post by:
I've got an adp (Metrix.adp) with a reference to another adp (InteractSQL.adp). InteractSQL sits on a server, and is refered to by all of the clients (Metrix), which sit on the client machines...
3
by: DonJefe | last post by:
Does anyone have experience using project->project references in large solutions? What are the plus/minuses that you have found? Currently, we are using the binary assembly references for our...
9
by: igor.kulkin | last post by:
References is a relatively basic feature of C++ language. It might be a good thing to think of references as aliases to the variables. However it's good to think of references this way when you...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.