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 7539885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:30:00+00:00 2026-05-30T07:30:00+00:00

With migrating to .net 4 we started facing the problem with our library. Assume

  • 0

With migrating to .net 4 we started facing the problem with our library.
Assume we have our library MyLib.dll and it references interop assembly Interop.dll.
Interop.dll has reference to MissingInterop.dll.

So the references can be shown as: MyLib.dll -> Interop.dll -> MissingInterop.dll

In MyLib.dll we use only part of classes from Interop.dll so we never call anything that needs MissingInterop.dll and in .net 3.5 it works just fine That’s why we don’t ship MissingInterop.dll with MyLib.dll.

When we use MyLib.dll from process running under .net 4 application fails with the following exception:

FileNotFoundException: “Could not load file or assembly ‘MissingInterop.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.”`

Also i have noticed that Interop.dll references other missing dll’s but .net doesn’t try to load them. And i have found the difference. Some types from MissingInterop.dll are used in method parameters in Interop.dll while types from other missing libraries are used only as method return types, i.e. in Interop.dll i can see:

  Class C1
     MethodA : void (valuetype [MissingInterop]MissingAssembly.TypeA&)
  Class C2
     get_Status : valuetype[AnotherMissingInterop]AnotherMissingAssembly.TypeB()

and .NET 4 tries to load MissingInterop.dll but doesn’t try to load AnotherMissingInterop.dll.

.NET 3.5 didn’t try to load neither MissingInterop.dll nor AnotherMissingInterop because they are not used in execution path.

I know that .NET 4 has new Fusion but i haven’t found such breaking change described anywhere.
Does anybody know why .NET 4 tries to load something that is not needed?
Is there a way to fix this without recompiling the code or adding missing file?

  • 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-05-30T07:30:02+00:00Added an answer on May 30, 2026 at 7:30 am

    When you are migrating your application from .NET 3.0, 3.5 to 4.0, then you need to include this mylib.dll into your project externally and compile them or if possible you have the source code of assembly then change it into .net 4.0

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

Sidebar

Related Questions

after migrating from .NET 3.5 to 4.0 i have a strange problem with a
We're currently migrating our ASP Intranet to .NET and we started to develop this
We are in the process of migrating our ASP.NET application to use Jquery instead
I am working on migrating the ASP.NET apllication to MVC Framework. I have implemented
I have a portfolio made in C#/ASP.NET which started off small but, as it
I'm just getting started with CruiseControl.NET and nAnt and don't really have a good
I'm learning J2EE and migrating my ASP.NET project into Java. IN Asp.NET I have
I am migrating to ASP.NET MVC 3. Now I have some ways of resolve
Did you ever have to persuade your customers that migrating your ASP.NET web forms
We're considering migrating from CruiseControl/CruiseControl.NET to TeamCity. A portion of our product is a

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.