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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:51:57+00:00 2026-05-13T17:51:57+00:00

I am building a Prism app with several modules, one of which ( MyModule

  • 0

I am building a Prism app with several modules, one of which (MyModule) contains a user control (MyUserControl) that I created. MyUserControl tests fine, but when I add it to MyModule and run the app, I get this exception:

“Cannot find type MyUserControl. The assembly used when compiling might be different than that used when loading and the type is missing.”

I can fix the error by adding a reference to MyUserControl to my Shell application. But of course, that defeats the whole purpose of Prism, since the Shell does not use MyUserControl–only MyModule uses it.

MyUserControl is based on the WPF Calendar control from the WPF Toolkit, which seems to have a similar problem. I have another user control in another module that does not depend on the WPF Toolkit, and I don’t get this exception for that control.

Any suggestions on how to fix this problem without coupling the Shell to MyUserControl? Thanks.

  • 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-13T17:51:57+00:00Added an answer on May 13, 2026 at 5:51 pm

    I think what you need is just copy the MyUserControl.dll once built into the main app folder
    (adding a reference in your main app is just doing that) the simplest way of doing that is using a post build event.
    right click on MyUserControl project , select properties, select the “Build Events” tab, in the Post-build command line type:
    xcopy $(TargetFileName) $(SolutionDir)\YOUR MAIN APP FOLDER\bin\Debug\Modules\ /Y
    and that’s it, once MyUserControl is built it will be copied into the main app folder automatically, then when you run the app the module that uses it will be able to find it.

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

Sidebar

Related Questions

I am building a business app based on a tiny variation of the Prism
Im building a wpf app with the composite application block (prism) V2, and Im
Silverlight 4 with Prism (MVVM pattern). I'm building a filter which is a datatype
I'm building an app that authors would (hopefully) use to help them, uh.. author
Currently I'm building an application using latest Prism for Silverlight 4. I've a module
I'm building a silverlight project based on the Prism 2.1 version. Added a shell
We were building out the next version of an in-house thick-client application using WPF/Prism
building a site using PHP and MySQL that needs to store a lot of
Building a Django app on a VPS. I am not very experienced with setting
Building a website that has English & Japanese speaking users, with the Japanese users

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.