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

calling .net 2.0 assembly from .net 1.1

One of our coworker created a dll for us, which is written in Visual
Studio .NET 2005 (VB). I tried to add the dll to our .NET 2003
project, and get the follow error:

"A reference to "MyDLL.dll" could 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 ot COM component."

Any idea? Should we make it as COM component?

Thanks a lot

Linda

Jun 12 '07 #1
1 5892
Sorry to say but the VS2003 cannot use .NET 2.0 assemblies.
And also to convert it to COM would not help since the DLL since your app is
..NET 1.1 and there can be only one .NET runtime in a process (for COM
interop you would need to load also .NET 2.0 runtime).
You might force your app to use .NET 2.0 runtime (it's quite compatible with
1.1) but you could not debug it anymore with VS2003.
The best thing is to recompile the VS2005 with VS2003.
You can find more details here:

http://forums.microsoft.com/MSDN/Sho...28853&SiteID=1

<li********@faa.govha scritto nel messaggio
news:11**********************@q19g2000prn.googlegr oups.com...
One of our coworker created a dll for us, which is written in Visual
Studio .NET 2005 (VB). I tried to add the dll to our .NET 2003
project, and get the follow error:

"A reference to "MyDLL.dll" could 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 ot COM component."

Any idea? Should we make it as COM component?

Thanks a lot

Linda
Jun 12 '07 #2

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

Similar topics

5
by: Chris | last post by:
Hi I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have...
0
by: Alex | last post by:
Hi I have an external assembly which I call from a windows forms application. What I want to do is terminate the calling application from within the assemnly - or otherwise ensure that the...
1
by: dwp | last post by:
hResult = pDefaultDomain->CreateInstanceFrom( pAppDomain- >m_bstrLoadAssemblyName, pAppDomain->m_bstrManagedClass, &pObjectHandle ) This call gives the E_ACCESSDENIED return value. I have...
3
by: RC | last post by:
Hi, I have a dll written by vb6. AFunction(ByRef o as Variant) I want to use it in csharp by System.Reflection. Assembly asm = Assembly.LoadFrom("Lib.dll"); Type t =...
1
by: Jesse McGrew | last post by:
Hi all, I'm trying to make a plugin DLL for a third-party application, using VC++ .NET 2003. This DLL acts as a bridge between the C++ plugin API of the application, and my actual plugin code...
1
by: Gos | last post by:
Hi, I have a DLL(say Test.DLL) which is being called by other DLLs in my application. I want to know which DLL is calling my Test.DLL. I want to get the name of the calling assembly within my...
2
by: Richard B | last post by:
I added a .NET dll as a reference to my new .NET dll. When I went to build, I received error "Unable to emit assembly: Referenced assembly 'CrystalReport' does not have a strong name". ...
1
by: Peter Rilling | last post by:
I have the following nAnt task which does not work. The problem is that I an calling is-assembly(...) passing in as a parameter a dynamically property. This property is not known until runtime. ...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
8
by: Derek Hart | last post by:
I am unclear about what all the requirements are to call a simple vb.net application, installed in the GAC, from COM (such as writing vba in Word to call the dotnet dll). I believe I have...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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.