PC Review


Reply
Thread Tools Rate Thread

Call .NET 1.1 assembly from 2.0

 
 
Alex
Guest
Posts: n/a
 
      9th Mar 2005
Hello,

how can I call a .NET 1.1 assembly from .NET 2.0 console application
or web service? When I try to to this I only get the a
BadImageFormatException with the message "ValueType mismatch".


Thank you!
Alex

PS: BTW, I tried to call the SharePoint assembly (which is only 1.1)
 
Reply With Quote
 
 
 
 
MasterGaurav
Guest
Posts: n/a
 
      9th Mar 2005
In the config file of the application, request for both the runtimes.

look for requiredRuntime element in the configuration files.

Ask for both 1.1 and 2.0. Then load.

Actually, by default only one runtime is loaded and 2.0 will not be
able to load 1.1 assemblies.

--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
-------------------------

 
Reply With Quote
 
Mattias Sjögren
Guest
Posts: n/a
 
      9th Mar 2005

>Actually, by default only one runtime is loaded


Only one version of the runtime can be loaded, you can't change that.


>and 2.0 will not be able to load 1.1 assemblies.


Sure it will.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
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
Call Graph from Assembly or Code Aamir Mahmood Microsoft C# .NET 0 21st Dec 2006 03:02 AM
Re: How to limmit who can call my assembly Steve B. Microsoft Dot NET Framework 1 4th Dec 2006 01:04 PM
How to obtain assembly name in unmanaged call? Gnanaprakash Rathinam Microsoft C# .NET 3 23rd Dec 2004 11:14 AM
How do I call an assembly across the network? Dmitry Microsoft VB .NET 2 26th Apr 2004 05:44 PM
Restricting access to Assembly.LoadFrom call within an assembly based on strong names Nicholas Paldino [.NET/C# MVP] Microsoft C# .NET 3 9th Dec 2003 08:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:06 PM.