471,339 Members | 1,280 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,339 software developers and data experts.

Call .NET 1.1 assembly from 2.0


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!

PS: BTW, I tried to call the SharePoint assembly (which is only 1.1)
Jul 21 '05 #1
2 2177
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.

Gaurav Vaish

Jul 21 '05 #2
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 Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Gnanaprakash Rathinam | last post: by
9 posts views Thread by keith | last post: by
3 posts views Thread by Michael | last post: by
4 posts views Thread by Lerp | last post: by
reply views Thread by rosydwin | last post: by

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.