calling .net 2.0 assembly from .net 1.1 - DOTNET
This is a discussion on calling .net 2.0 assembly from .net 1.1 - DOTNET ; 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" ...
-
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
-
Re: calling .net 2.0 assembly from .net 1.1
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
<linda.chen@faa.gov> ha scritto nel messaggio
news:1181663149.390951.194960@q19g2000prn.googlegroups.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
>
-
Re: calling .net 2.0 assembly from .net 1.1
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
<linda.chen@faa.gov> ha scritto nel messaggio
news:1181663149.390951.194960@q19g2000prn.googlegroups.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
>
Similar Threads
-
By Application Development in forum CSharp
Replies: 3
Last Post: 11-09-2007, 03:35 AM
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 04-26-2007, 11:28 AM
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 01-08-2004, 04:46 PM
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 06-28-2003, 08:58 AM