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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:30:12+00:00 2026-05-27T06:30:12+00:00

When I tried running a WPF app that uses PRISM from a button add-in

  • 0

When I tried running a WPF app that uses PRISM from a button add-in in ArcMap, the OnClick event goes as far as initializing and showing the Shell.xaml but when it tries to load the modules and the controls in the regions, I get this error:

Unable to cast transparent proxy to type ‘InnerModuleInfoLoader’

The button add-in has this for the onclick eventhandler:

      protected override void OnClick()
      {
          App app = new App();
          app.InitializeComponent();
          app.Run();
      }    

In the App.xaml.cs then runs the bootstrapper OnStartUp:

      protected override void OnStartup(StartupEventArgs e)
      {
          base.OnStartup(e);
          Bootstrapper bootstrapper = new Bootstrapper();
          bootstrapper.Run();
      }    

The modules are copied to the Add-In’s bin\Modules folder:

      protected override IModuleCatalog CreateModuleCatalog()
      {
          var moduleCatalog = new DirectoryModuleCatalog();
          moduleCatalog.ModulePath = @".\Modules";
          return moduleCatalog;
      }    

The bootstrapper’s Run() method goes as far as initializing and showing the Shell:

      protected override void InitializeShell()
      {
          base.InitializeShell();  
          App.Current.MainWindow = (Window)this.Shell;
          App.Current.MainWindow.Show();
      }    

But on the part where it tries to load the modules and the controls into the regions, I get that error. The WPF app by itself runs fine, but when the button runs it, it doesn’t finish.

I’m not a prism expert, just trying this as a prototype for a next version, so any help will be appreciated.

  • 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-27T06:30:13+00:00Added an answer on May 27, 2026 at 6:30 am

    Finally resolved this issue. The error message was basically telling me that it doesn’t know what “InnerModuleInfoLoader” was, so I tried placing the prism DLLs in the bin folder of the calling app (3rd party button add-in) and voila, it got past through the error message. We were hoping we did not have to put the DLLs in the GAC or in the 3rd party app/bin folder but I guess we would have to either place them in the GAC or maybe set the path in the EnvironmentVariable for the 3rd party app to find them.

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

Sidebar

Related Questions

Im running a console app that loads a dll and calls a method from
I have a WPF app that from time to time needs to perform a
Greetings folks! I'm running into a problem with WPF databinding that I hope you
LATEST Update (Nov 2 2011 9AM) I tried running tnsping from the service and
service service_name start When i tried running this from cmd line, it works. But
I am developing a WPF app that contains a webbrowser control that loads a
In my WPF app, I have a feedback control that I want to appear
I've tried running this code from 2 different operating systems on a simulator, an
I'm working with a WPF/C# app where I need to lock out users from
I'm having an issue using a new WPF app that is trying to display

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.