Red Gate forums :: View topic - Difficulty with missing .net version
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

Difficulty with missing .net version

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



Joined: 11 Oct 2007
Posts: 132

PostPosted: Wed Jul 20, 2011 1:41 am    Post subject: Difficulty with missing .net version Reply with quote

I do have a certain problem with SA and missing .net versions.

When an obfuscated app needs for example .net 3.5 and its not installed, the app starts and does "nothing". Of course the automated error reporting sends an message that System.Core v3.5 was not found. But that is not helpful at all for the user or admin.

Is there any way to avoid this specific problem to be caught and reported instead of reporting to the user?
Back to top
View user's profile Send private message MSN Messenger
Brian Donahue



Joined: 23 Aug 2004
Posts: 6643

PostPosted: Thu Jul 21, 2011 10:54 am    Post subject: Reply with quote

I'm assuming you've implemented a custom error dialog or have chosen the option not to display a dialog. Since this is a technically a binding failure, it will happen before the window pops up. All I can think to do is use the SDK to create a custom error handler that displays a window when there is a binding failure and to report silently on any other type of exception.
Back to top
View user's profile Send private message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Thu Jul 21, 2011 2:27 pm    Post subject: Reply with quote

I am using the default reporting without userinterface.
Yet the SDK solution is not available in the standard version of SA. Crying or Very sad
Back to top
View user's profile Send private message MSN Messenger
Brian Donahue



Joined: 23 Aug 2004
Posts: 6643

PostPosted: Thu Jul 21, 2011 2:57 pm    Post subject: Reply with quote

It's been awhile since I looked into anything like this, but if you implement your own custom "UnhandledExceptionHandler" I think you may be able to put something in there that will display a messagebox on a binding failure. Have you tried it?
Back to top
View user's profile Send private message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Thu Jul 21, 2011 5:56 pm    Post subject: Reply with quote

If I remember right, without the SDK you can have one or the other but I will have a look at it.

Anyway would be great if SA would be able to handle this in a more end-user friendly way.
Back to top
View user's profile Send private message MSN Messenger
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