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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:26:03+00:00 2026-05-11T06:26:03+00:00

Similar to coryr (see this question ), I am referencing a dll within a

  • 0

Similar to coryr (see this question), I am referencing a dll within a C# project. The DLL often changes but I the C# project does not recognize this. Unlike coryr, the DLL is a VB6 ActiveX DLL. Any suggestions for how to reload the reference other than removing and adding it?

  • 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. 2026-05-11T06:26:03+00:00Added an answer on May 11, 2026 at 6:26 am

    The problem here is that when you add a reference to a COM DLL, you don’t actually add a reference to the DLL. Instead a primary interop assembly is generated for the DLL and a reference is added to that. When the main DLL is changed a new PIA (primary interop assembly) is not generated.

    You can verify this by doing the following

    1. Expand the references collection
    2. Hit F4. This will bring up the properties page
    3. Look at the path property

    The path will be the path to the PIA.

    The problem is that VS is watching the PIA and not the original DLL. So when the original DLL changes it doesn’t actually reload the reference. The best way to get this to work is to unfortunately delete and re-add the reference.

    Another solution is to manually generate the PIA and place it over the referenced PIA on disk. This will force VS to reload the DLL reference.

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

Sidebar

Related Questions

Similar threads that addresses this are possibly there on SO, but I do not
Similar to this question but rephrased for Linq: You can use Enumerable<T>.Any() to test
Similar to this question , but the answers never really got around to what
Similar to this question , but I have one master report which contains many
Similar to this question: C# Constructor Design but this question is slight different. I
Similar to this question . I would like to find all commented files. But
Similar questions have been asked before but this question strives to explore more options
Similar questions have been asked but I am not sure if they match this
Similar to this question, but in Delphi: How do I find out if a
Similar to this question , but taking it a step further. I would like

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.