Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8087423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:46:16+00:00 2026-06-05T18:46:16+00:00

I had a Problem to use DotNet 4.0 DLL in a DotNet 2.0 Application,

  • 0

I had a Problem to use DotNet 4.0 DLL in a DotNet 2.0 Application, googling the Issue showed a single suitable solution: COM

Anyway i’m trying to do that now but i keep getting the following Error when i add the reference in my application (the reference is tlb):

The ActiveX type library ‘MyLib.tlb’ was exported from a .NET assembly
and cannot be added as a reference. please reference the Assembly directly.

Am i missing anything? its stated on a lot of websites that this option should work:
Example1, Example2

On the other hand its stated on an old link of microsoft that this option is not possible “By Design”

Any Ideas? Hints?

Home i’m not confusing things.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:46:19+00:00Added an answer on June 5, 2026 at 6:46 pm

    Because it would lead to loading the .NET4 runtime in a process where the .NET2 runtime is already loaded – this is not possible by design!
    Support for mixing .NET versions in one process was introduced in .NET 4 .

    IF you really need to make this work:

    • make a native out-of-process COM server which uses that .NET4 DLL
    • then use that server from your .NET2 process (NOT the .NET4 DLL directly !)

    REMARK – after seeing your comment about EF4:

    I strongly recommend to convert your .NET2 application to .NET 4 – anything else will be a real maintainance nightmare!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have had a problem in firefox (using 10.0.2) trying to use javascript to
I've had some problems with a Django application after I deployed it. I use
I'm developing a silverlight application for use on small and large monitors, I had
I've had problem when trying write a function which has a default value when
I had a problem described here , and I was suggested to use IO
I've had this problem many times before, and I've never had a solution I
I use Borland C++ Builder. And i had o problem #include <Classes.hpp> class TMyObject
I use Struts2+JSP+Tomcat6+Hibernate+Mysql as my J2EE application framework.Following to this topic, I've had the
I recently had a problem with the Issue Tracker starter kit that seemed to
I've been running into problem after problem trying to use the a third party

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.