SCSF/CAB application won't run
slackjaw
Posts: 3
Hello,
I have an application built on top of Microsoft's CAB that won't run when I build it with smart assembly. Depending on the preferences I select it either crashes immediately, starts up and then crashes, or silently crashes.
Basically if I don't select any assemblies in the "Dependency Merging" and "Dependency Embedding" sections the application the app crashes immediately.
If I select all assemblies under "Dependency Merging" than the application will start up (I see the initial dialog that we show) but it crashes after that.
If I select "rebuild with self diagnostic" the application appears to silently fail.
I'm guessing part of the problem is that smartAssembly can't detect all of the dependencies but I can't see a way to add assemblies that it hasn't detected.
Any guidance would be appreciated.
I have an application built on top of Microsoft's CAB that won't run when I build it with smart assembly. Depending on the preferences I select it either crashes immediately, starts up and then crashes, or silently crashes.
Basically if I don't select any assemblies in the "Dependency Merging" and "Dependency Embedding" sections the application the app crashes immediately.
If I select all assemblies under "Dependency Merging" than the application will start up (I see the initial dialog that we show) but it crashes after that.
If I select "rebuild with self diagnostic" the application appears to silently fail.
I'm guessing part of the problem is that smartAssembly can't detect all of the dependencies but I can't see a way to add assemblies that it hasn't detected.
Any guidance would be appreciated.
Comments
If you need further details about CAB or SCSF e-mail me and I will provide them.
The fact you don't get any debugging information won't make it easy to sort out, though.
Some of SA's options just plain won't work in some scenarios and we recommend starting with the bare minimum and adding more options until the assembly stops working.
If it is broken by obfuscation, then you have to work out which types need to be excluded, which can be a pain.
Merging tends to wreck type equivilency, resulting in bizarre and inconsistent errors.