Red Gate forums :: View topic - Upgrade from SmartAssembly 6.1 to 6.5
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

Upgrade from SmartAssembly 6.1 to 6.5

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



Joined: 26 May 2009
Posts: 4

PostPosted: Mon Dec 19, 2011 11:00 am    Post subject: Upgrade from SmartAssembly 6.1 to 6.5 Reply with quote

Hi,

We've just upgraded our build server from version 6.1.0.48 to 6.5.2.21 and we now have 2 issues. Nothing has changed in any of the saproj files and if I reinstall version 6.1 then the issues go away.

Firstly, the amount of time it takes to obfuscate our 8 assemblies has increased from just over 2 minutes to just over 5 minutes. This is an ASP.NET MVC application so there a couple of web assemblies but the other 6 are standard .NET dlls.

Secondly, and even more seriously, some pages in our application refuse to load with the following error

Code:
An attempt was made to load a program with an incorrect format


Can someone please give me some advice on what can be done to solve these problems please.
Back to top
View user's profile Send private message
james.davies



Joined: 19 Apr 2011
Posts: 46

PostPosted: Tue Dec 20, 2011 2:18 pm    Post subject: Reply with quote

Hi,

Sorry you're having problems with v6.5.

In many cases v6.5 is faster. What features are you using ? Are you merging or embedding large dependencies ?

Can you isolate which SA feature is causing the error in the processed assembly?
(There is a recently fixed bug relating to custom attributes processing which occurs with no features enabled. If that is the case for you , then I can supply a patched version)
_________________
Thanks,
James Davies
Technical Support Engineer
Red Gate Software
Back to top
View user's profile Send private message
PawelP



Joined: 05 Jan 2012
Posts: 3
Location: Poland

PostPosted: Mon Jan 16, 2012 3:07 pm    Post subject: Reply with quote

I have similar problem with increased time.
My dll contains many windows (about 120). Some of them are small (ex. 10 controls), but most of them contains much more then 100 controls and some are very big with more then 1000 controls.
With version 6.0 obfuscation takes 2,5 minutes. With version 6.5 - 9 minutes!
Project settings are: pruning and obfuscating with unicode unprintable characters.
Ask for anything, which can help You find solution for this problem.
Back to top
View user's profile Send private message
james.davies



Joined: 19 Apr 2011
Posts: 46

PostPosted: Mon Jan 16, 2012 3:21 pm    Post subject: Reply with quote

Hi,

Firstly I should say that v6.5 is a re-architecture which is why it's performance is very different to v6.2 (in many cases better, but some cases worse).

SmartAssembly 6.6 is a recently released update and contains bug fixes and some memory improvements. v6.6 is a recommended update for all users of SmartAssembly 6.5.

http://www.red-gate.com/supportcenter/Content/SmartAssembly/articles/version_6xx_SmartAssembly

Please give it a try and let me know if there are still performance problems.
_________________
Thanks,
James Davies
Technical Support Engineer
Red Gate Software
Back to top
View user's profile Send private message
PawelP



Joined: 05 Jan 2012
Posts: 3
Location: Poland

PostPosted: Mon Jan 16, 2012 3:29 pm    Post subject: Reply with quote

Ok. I will install 6.6 today and check how it works.

I've checked this version and it isn't better - obfuscation task is taking too long (pruning goes really fast).
I've also noticed, that version 6.6 removes our custom attributes from classes. Is it "by design" functionality?
Back to top
View user's profile Send private message
james.davies



Joined: 19 Apr 2011
Posts: 46

PostPosted: Mon Jan 16, 2012 6:12 pm    Post subject: Reply with quote

Hi,

The removal of custom attributes is not intended behaviour. Does it occur when there are no SA features enabled ?
_________________
Thanks,
James Davies
Technical Support Engineer
Red Gate Software
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