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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:04:02+00:00 2026-05-18T09:04:02+00:00

I’m trying to create a setup CAB of an application for a mobile device.

  • 0

I’m trying to create a setup CAB of an application for a mobile device. I can run the application via visual studio on the emulator however, when I try to manually install the cab on the emulator and run the program it immediately pops up with an Error message “An unexpected error…”, clicking on details it shows me the name of the program and then “MissingMethodException” and that is all, not further information about where to look.

I actually now have two setup projects. The original setup project which was always configured to explicitly reference the “Debug Any CPU” output which now only builds in the Debug configuration. A new setup project now explicitly references the “Relase Any CPU” output which only build in the Release configuration.

It seems that this is only an issue in the release build, which is kind of concerning. I would prefer not to release debug versions of the code into production environments.

After configuring the loader app, I get the following output (namespaces names changed to protected the innocent)

This log is actually identical to the debug log up until about eight lines from the bottom of this log.

In the debug log, after the System.Data.DataSetExtensions module is loaded the System.Xml.Linq module is loaded and then after the redirects at the end of the log a slew of additional modules are loaded starting with \Windows\GAC_System.SR_v3_5_0_0_cneutral_1.dll and about 80 lines of attempts to load resources and then the Forms module is loaded.

New attempt

After trying to build my own inf I still get the MissingMethodException but more detailed. It complains that it isn’t able to load a specific type from one of my assemblies.

Since I’ve seen the application run in release mode I decided to try copied the deployed assemblies and using those to create my cab, which did not work. I then compared the assemblies to the assemblies I was originally using to create my cab with and they are identical.

This led me to believe that if I tried to manually run the deployed release build from the device manually I would still get the MissingMethodException, and sure enough, that is the case. In this instance though I get the undetailed MissingMethodException.

To reiterate this point I have noticed that when I hit “Start Debugging” in visual studio with the Release configuration selected the program runs as excepted, however if I stop debugging and try to manually run what is deployed on the device I get the empty MissingMethodException. If I do the same thing for the debug version, that is, “Start Debugging” in Visual Studio and then stop debugging and manually run the application from the device the application runs fine.

If anyone has any ideas on what this could be it would be much appreciated. I am so confused.

  • 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-18T09:04:02+00:00Added an answer on May 18, 2026 at 9:04 am

    Turn on the loader log in the registry and see what it says is failing to load.

    EDIT

    First, I’d abandon the CAB project – the tool flat out sucks and simply adds way, way too much complexity to what is, in fact, a pretty simple process of creating a CAB file.

    You know the app works since you can run it from the debugger. Take those release assemblies and put them in a folder. Create an INF file (the setup project creates one, so you can use it as a “seed” if you wish) that describes how they should be packaged, then manually run cabwiz.exe with that INF (or create a BAT file, which is what we do).

    I found years ago that this was the easiest way to create CABs that you could rely on, that was repeatable and that was automatable. The fact I use a batch file and a manually-rolled INF even after writing the MSDN article on the CAB project is pretty telling.

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

Sidebar

Related Questions

No related questions found

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.