PC Review


Reply
Thread Tools Rate Thread

calling .net 2.0 assembly from .net 1.1

 
 
linda.chen@faa.gov
Guest
Posts: n/a
 
      12th Jun 2007
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

 
Reply With Quote
 
 
 
 
Laura T.
Guest
Posts: n/a
 
      12th Jun 2007
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

<(E-Mail Removed)> ha scritto nel messaggio
news:(E-Mail Removed)...
> 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
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strong-named assembly calling unsigned assembly: FileNotFoundexception Carol Microsoft C# .NET 7 21st Apr 2009 06:21 AM
Problem calling assembly which references another assembly from an asp page christianhaynes@hotmail.com Microsoft ASP .NET 3 3rd Mar 2006 05:52 PM
calling a 2.0 CF assembly from a 1.1 assembly ? Steve B. Microsoft Dot NET Compact Framework 4 29th Jul 2005 02:17 AM
Calling Assembly Steve Long Microsoft VB .NET 2 26th Apr 2005 11:05 PM
Getting the name of the calling assembly Steve Singer Microsoft VB .NET 1 15th Feb 2005 11:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:23 AM.