473,387 Members | 1,619 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,387 software developers and data experts.

Using COM dll problem

I have used COM dll's wuthin my C# apps and have had no problems.
I simply add a reference to the dll and C# does the rest.
When I tried this on several other dll's (all built the same way) I get
the following error:

A reference to 'assemblyname.exe' cou
ld not be added. This is not a valid assembly or COM component. Only
assemblies with extension 'dll' and COM components can be referenced.
Please make sure that the file is accessible, and that it is a valid
assembly or COM component.

The dll's are COM. I have tried using C++ and VB dll's.

Can anyone help with this problem?

Steven
*** Sent via Developersdex http://www.developersdex.com ***
Sep 19 '06 #1
3 1294
Hi, Steven,

Is the com object resides in a dll file, or exe file...

The error message simply tells you that you are trying to reference a
com object in an exe file (try to find out where the com object you were
using is defined ) ...

HTH..

Steven Blair wrote:
I have used COM dll's wuthin my C# apps and have had no problems.
I simply add a reference to the dll and C# does the rest.
When I tried this on several other dll's (all built the same way) I get
the following error:

A reference to 'assemblyname.exe' cou
ld not be added. This is not a valid assembly or COM component. Only
assemblies with extension 'dll' and COM components can be referenced.
Please make sure that the file is accessible, and that it is a valid
assembly or COM component.

The dll's are COM. I have tried using C++ and VB dll's.

Can anyone help with this problem?

Steven
*** Sent via Developersdex http://www.developersdex.com ***
Sep 19 '06 #2
Thanks for the response.

It's always a dll I try to access and then I get this error.

Any more information that might help me?
*** Sent via Developersdex http://www.developersdex.com ***
Sep 19 '06 #3
For anyone interested.

This problem appears to be machine related. Several other PC's in the
office with VS2005 installed can use the COM dll's.
I eventually got the DLL to work by loading VS2003 and adding a
reference via this IDE, and then using the Interop file generated by
VS2003 in my VS2005 setup.

*** Sent via Developersdex http://www.developersdex.com ***
Oct 31 '06 #4

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

Similar topics

2
by: Jon Dellaria | last post by:
I have been using MySql as the database using JSP's and JavaBeans but recently I have wanted to start using the database connection pooling mechanism built into TomCat. I think I am having a...
13
by: Squid Seven | last post by:
This is just bizarre. for the following snippet of code: #include <string> using std::string; I get the error message:
4
by: John Morgan | last post by:
I have Enterprise Manager on my local machine. For the last twelve months it has been connecting without problem to my online SQL Server database provided by my ISP. Three weeks ago the ISP...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
12
by: bj7lewis | last post by:
I am working on a project I want to add a few files as resource to access(copy them to FS and use) at runtime. So far in VS.NET IDE, I Add Files to the project and set its Build Action to...
5
by: IkBenHet | last post by:
Hello, I use this script to upload image files to a folder on a IIS6 server: ******************* START UPLOAD.ASPX FILE ********************** <%@ Page Language="VB" Debug="true" %>
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
3
by: Michael Hoehne | last post by:
Hi, I'm currently facing a problem with a mixed environment using .NET 1.1 and ..NET 2.0 web services. We have a client application (the "client", system 1) running on .NET 2.0/WinXP, calling...
0
by: Metal2You | last post by:
I'm working on an ASP.NET 2.0 application in Visual Studio 2005 that accesses a Sybase database back end. We're using Sybase SQL Anywhere 9.0.2.3228. I have installed and registered the Sybase...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.