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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:07:17+00:00 2026-06-11T22:07:17+00:00

I am building a C# .net 3.5 application. I have an exe ‘MainApp’ which

  • 0

I am building a C# .net 3.5 application.

I have an exe ‘MainApp’ which references a dll ‘CommonDll’

The CommonDll dynamically loads another dll ‘LoadedDll’ and invokes dynamically a method called func().

The ‘LoadedDll’ references the ‘CommonDll’

in the ‘CommonDll’ there is a method foo() which the func() is calling.

    func()
    {
        foo();
    }

So, what we have so far:

MainApp ==> CommonDll ==Dynamicly==> LoadedDll

LoadedDll ==> CommonDll.

everything worked just fine, until I changed the method foo() to get a boolean argument: foo(bool val); and cheanged also the func() in ‘LoadedDll’ to

func()
{
foo(true);
}

I have the MainApp(references the old CommonDll) in version 1.0, and the LoadedDll(references the new CommonDll) in version 1.1

For some reason I get a “MethodNotFound Excepion” on the method foo saying it cannot find foo that gets a boolean argument.

Why is this happening? The LoadedDll is using a static reference to the updated CommonDll, so why it can’t find that method?

Also, the exception doesn’t saying that it cannot find the ‘func()’ method which is loaded dynamically, but it says that it cannot find the foo method.

EDIT:

I looked for the dll in the GAC but it is not there, is there another reason why an old dll that is already in the memory will be loaded instead of the new one?

  • 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-11T22:07:18+00:00Added an answer on June 11, 2026 at 10:07 pm

    I figured out the reason for the issue.

    there was some external code which cahnged the dll version to a constant value and therefore the strong name was the same.

    buttom line: if you are load a dll and then you try to load another dll with the same strong name, the first dll will be used.

    inorder to load 2 dlls with the same name they must have a different strong name.

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

Sidebar

Related Questions

I have a web application (ASP.NET 4.0 in c#) and I am building a
I have an application that uses the .NET framework 3.5. I am building this
In have my application configured in asp.net. I am using ajaxcontroltoolkit. After building the
I'm building a .NET MVC application which will be deployed on a Windows 2003
I am building an ASP.NET application that needs dynamic tables. That's another issue that
In Visual Studio 2010, I have project A (asp.net application). Project A references project
I'am building an asp.net application that have a gridview inside an update pannel. In
I am building an asp.net mvc3 application and I have decided to use areas
As part of building an ASP.net application, I have to display two things for
I'm building a .NET 3.5 application and have the need to evaluate JS code

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.