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

  • Home
  • SEARCH
  • 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 246461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:10:28+00:00 2026-05-11T21:10:28+00:00

I have an application that loads dlls dynamically. The application and the dlls use

  • 0

I have an application that loads dlls dynamically. The application and the
dlls use a Functions.dll that can be a diferent version for the application an
for each dll, but in execution the application and the dlls all use the same
dll version (the one used by the EXE) and share the static variables…

How can i force them to use their own Functions.dll(n-version)?

-Details:

  • I tried loading the dlls by “Assembly
    dll = Assembly.LoadFile(” and by
    “Assembly dll=domaindll.Load(“
  • In Functions.dll, al the methods and objects are Static
  • I use Functions.dll “statically” by referencing it throught VS in all
    cases not dynamically
  • The dlls and Functions.dll are developed in C# too

-Folder Estructure:

Application:

Application.EXE
Functions.dll(version 1.2)
DLLS:
    EXAMPLEDLL1:
        EXAMPLEDLL1.DLL
        Functions.dll(version 1.1)
    EXAMPLEDLL2:
        EXAMPLEDLL2.DLL
        Functions.dll(version 1.0)
    EXAMPLEDLL3:
        EXAMPLEDLL3.DLL
        Functions.dll(version 1.2)
  • 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-11T21:10:29+00:00Added an answer on May 11, 2026 at 9:10 pm

    You can enforce binding to a specific version of a DLL by strong-signing it. You can also try setting “Specific Version” to true on the reference properties, but as far as I’m aware that only affects compile-time binding and a different version can be loaded at runtime if the assembly isn’t strong-signed.

    This should get you started: Strong-Name Signing for Managed Applications

    Be aware, though, that any types declared in this dll will not be type-equivalent to the same type in a different version of the assembly. For instance, if I declare a class called Foo in Functions.dll, then an instance of Foo from version 1.0 won’t be the same type as an instance of Foo from version 1.1. As far as the CLR is concerned, these are completely different types.

    If all you have are static functions in the assembly and no types are defined, then you should be OK. Otherwise you need to look into a different approach.

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

Sidebar

Ask A Question

Stats

  • Questions 204k
  • Answers 204k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This line is wrong: printf("Thread %d starting...\n",*tid); You can achieve… May 12, 2026 at 8:44 pm
  • Editorial Team
    Editorial Team added an answer What's your threat model? Are you trying to stop a… May 12, 2026 at 8:44 pm
  • Editorial Team
    Editorial Team added an answer Yes, $_FILES is a superglobal, which means that it's accessible… May 12, 2026 at 8:44 pm

Related Questions

I am currently developing an application in where a user will dynamically choose dlls
I am currently writing an application that will serve a similar purpose for multiple
My project requires that my final application be completely self contained in a single
I have built a .dll under WinXP that claims it can't find DWMAPI.DLL when

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.