windows mobile - MissingMethodException in RELEASE build of setup CAB -


i'm trying create setup cab of application mobile device. can run application via visual studio on emulator however, when try manually install cab on emulator , run program pops error message "an unexpected error...", clicking on details shows me name of program , "missingmethodexception" , all, not further information look.

i have 2 setup projects. original setup project configured explicitly reference "debug cpu" output builds in debug configuration. new setup project explicitly references "relase cpu" output build in release configuration.

it seems issue in release build, kind of concerning. prefer not release debug versions of code production environments.

after configuring loader app, following output (namespaces names changed protected innocent)

this log identical debug log until 8 lines bottom of log.

in debug log, after system.data.datasetextensions module loaded system.xml.linq module loaded , after redirects @ end of log slew of additional modules loaded starting \windows\gac_system.sr_v3_5_0_0_cneutral_1.dll , 80 lines of attempts load resources , forms module loaded.

new attempt

after trying build own inf still missingmethodexception more detailed. complains isn't able load specific type 1 of assemblies.

since i've seen application run in release mode decided try copied deployed assemblies , using create cab, did not work. compared assemblies assemblies using create cab , identical.

this led me believe if tried manually run deployed release build device manually still missingmethodexception, , sure enough, case. in instance though undetailed missingmethodexception.

to reiterate point have noticed when hit "start debugging" in visual studio release configuration selected program runs excepted, if stop debugging , try manually run deployed on device empty missingmethodexception. if same thing debug version, is, "start debugging" in visual studio , stop debugging , manually run application device application runs fine.

if has ideas on appreciated. confused.

turn on loader log in registry , see says failing load.

edit

first, i'd abandon cab project - tool flat out sucks , adds way, way complexity is, in fact, pretty simple process of creating cab file.

you know app works since can run debugger. take release assemblies , put them in folder. create an inf file (the setup project creates one, can use "seed" if wish) describes how should packaged, manually run cabwiz.exe inf (or create bat file, do).

i found years ago easiest way create cabs rely on, repeatable , automatable. fact use batch file , manually-rolled inf after writing the msdn article on cab project pretty telling.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -