Red Gate forums :: View topic - SCSF/CAB application won't run
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

SCSF/CAB application won't run

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
slackjaw



Joined: 06 Apr 2011
Posts: 2

PostPosted: Wed Apr 06, 2011 3:10 pm    Post subject: SCSF/CAB application won't run Reply with quote

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.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6588

PostPosted: Thu Apr 07, 2011 5:13 pm    Post subject: Reply with quote

Can you please explain "built on top of Microsoft's CAB"? Does this mean you are building a setup and deployment project?
Back to top
View user's profile Send private message
slackjaw



Joined: 06 Apr 2011
Posts: 2

PostPosted: Thu Apr 07, 2011 5:42 pm    Post subject: Reply with quote

It means that our application uses the Composite UI Application block for messaging and module loading (among other things). When I say "CAB" I do not mean a cabinet file (which is why the subject mentions the Smart Client Software Factory) so no it's not a setup and deployment project.

If you need further details about CAB or SCSF e-mail me and I will provide them.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6588

PostPosted: Mon Apr 11, 2011 5:38 pm    Post subject: Reply with quote

I'm not sure how to get to the bottom of this problem but regardless of the three-letter-acronym sitting on top of .NET it usually a dependency issue or an issue brought on by renaming that breaks reflection.

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group