Red Gate forums :: View topic - Protected app works only on dev machine
Return to www.red-gate.com RSS Feed Available

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

Protected app works only on dev machine

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Sun Aug 29, 2010 11:13 pm    Post subject: Protected app works only on dev machine Reply with quote

First time I see this happening, but the protected app runs only on the dev machine. On any other machine it crashes.

Weird about this:
* message: Process is terminated due to StackOverflowException.
* no exception reports are created or sent

The protected app is including a few other merged assemblies, so there are no other dependencies except .net

I can send the file for analysis if needed.
Back to top
View user's profile Send private message MSN Messenger
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Tue Aug 31, 2010 11:03 am    Post subject: Reply with quote

Hello,

Thanks for your post, unfortunately this is not a lot to go on. Just to confirm, is your development computer on a 32-bit OS and the other computers running 64-bit OS? SmartAssembly seems to be sensitive to the bitness of the application so perhaps compiling it explicitly for 32-bit if it is loading any 32-bit unmanaged DLLs may help.

Otherwise, the application will need to be debugged and/or checked for binding failures. Maybe your development machine has some assemblies in the GAC that need to be in the GAC and the other machines do not have them in their GAC.

Can you attach a debugger (Windbg, for instance) and check for exceptions in the protected assembly when you run it?
Back to top
View user's profile Send private message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Tue Aug 31, 2010 1:24 pm    Post subject: Reply with quote

All 32bit, no GAC dependencies. Will do a check with windbg and let you know.
Back to top
View user's profile Send private message MSN Messenger
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Thu Sep 02, 2010 12:53 pm    Post subject: Reply with quote

Feel free to send the assembly to our support address if you want us to try to debug it.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Thu Sep 02, 2010 3:31 pm    Post subject: Reply with quote

Thanks for the assembly. It's hard to work out from the obfuscated assembly, but my impression is that you are using reflection to bind to an assembly called Uniwares.aManda.FileUpload.Client, Version=1.0.3893.33493, Culture=neutral, PublicKeyToken=f1d90c6d130b5386 and this is failing with a null-reference exception. Additionally it looks like SA is trying to display this information and is causing a stack overflow in the process.
Back to top
View user's profile Send private message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Tue Sep 07, 2010 12:01 am    Post subject: Reply with quote

Sorry for the late reply, didn't get the notification it seems.

No, the mentioned assembly is merged, but not bound using reflection.
Back to top
View user's profile Send private message MSN Messenger
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Tue Sep 07, 2010 9:46 am    Post subject: Reply with quote

Thanks, I'll see if it works with "embed" and go from there.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. 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