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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:02:27+00:00 2026-06-01T22:02:27+00:00

I have a WPF application that uses a third-party library to perform a specific

  • 0

I have a WPF application that uses a third-party library to perform a specific task; this library, in one of its methods, executes the statement Assembly.GetEntryAssembly().

If I run the WPF application on debug (by running a .Net exe for testing) the library works properly and Assembly.GetEntryAssembly() returns a reference to the assembly of the executable, but in production I have a different situation that causes me some problems.

In production, the WPF application is integrated with a VB6 application and programs are launched from a VB6 menu using the InteropFormLibrary; in this situation the library raise an exception because Assembly.GetEntryAssembly() returns null (it can’t find the executable associated with the assembly).

My problem is that I can’t change the code of the library because I don’t have the sources available and I found the statement that throws the exception by dll decompiler and analyzing the method that was in the exception.

Now my question is: Is there any way to make sure that the method GetEntryAssembly doesn’t return null? Can I assign or “circumvent” in some way?

  • 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-01T22:02:28+00:00Added an answer on June 1, 2026 at 10:02 pm

    The easiest way would be getting the developer of the dll to fix his code to support being hosted in a native (like VB6 or C/C++) process.

    That said, if its not possible, you can try to host your .NET side in a separate process, being based on a .NET exe. Since you are doing VB6 interop you’ll probably already be using COM interop, so you could just switch to the out-of-process COM model. This way your .NET components can run inside a .NET exe and have an entry point assembly. I’ve already done that for similar reasons and it worked fine for me.

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

Sidebar

Related Questions

I have a simple WPF application that uses ClickOnce to handle installing. Within this
I have a fairly large application that uses WPF for its user interface. I
I have a WPF application that uses a WCF services to perform operations on
I have an application that uses WPF Composite, and I have an issue. I've
I'm writing a WPF application that uses one document at a time. Is there
I have an WPF Full Tust explorer application that uses a COM assembly. In
I have a WPF application implemented using the MVVM framework that uses an ActiveX
Background/context for this question: I have a WPF desktop application. It uses LINQ to
I have a WPF application that uses a custom window frame. My problem is
I have a WPF windows application that uses the ms ribbon control for the

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.