Red Gate forums :: View topic - SA failing to merge Silverlight 4 .dlls.
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

SA failing to merge Silverlight 4 .dlls.

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



Joined: 05 Jul 2011
Posts: 4

PostPosted: Tue Jul 05, 2011 9:50 pm    Post subject: SA failing to merge Silverlight 4 .dlls. Reply with quote

I am running an OOB app.

With all settings set to 'Off', the SL app works fine after processing.

When I elect to embed a required Silverlight .dll (our app's common/shared code) into the application .dll the OOB app displays the white screen of death.

No errors are returned from the build process.

If error reporting is enabled, no errors are reported.

No options are turned on except for merging the required Silverlight .dll.

Thanks!

[ALSO]

I have read the document on troubleshooting common problems... Smile
Back to top
View user's profile Send private message
mikeanderson12



Joined: 05 Jul 2011
Posts: 4

PostPosted: Mon Jul 11, 2011 11:30 pm    Post subject: Reply with quote

*bump*?
Back to top
View user's profile Send private message
james.davies



Joined: 19 Apr 2011
Posts: 46

PostPosted: Tue Jul 12, 2011 3:20 pm    Post subject: Reply with quote

Hi Mike.

Apologies for the delay in replying.

You wrote "embed" once but I assume you were referring to merging. Please clarify.

Merging can break namespaces , which means it will cause problems should you use reflection to call a method or type by name.

You can trace any use of reflection using the error reporting as described in the troubleshooting guide. Or you can try embedding the dependency instead.
_________________
Thanks,
James Davies
Technical Support Engineer
Red Gate Software
Back to top
View user's profile Send private message
mikeanderson12



Joined: 05 Jul 2011
Posts: 4

PostPosted: Tue Jul 12, 2011 5:20 pm    Post subject: Reply with quote

Thanks for the reply.

Yes, I meant 'merge'.

I can obfuscate .dll 'A' separately from .dll 'B' and recreate the .xap using the two obfuscated .dlls and my SL application works correctly. It would seem that I should be able to process both .dll's together.

No reflection is used to call methods in either .dll.

If merging can break namespaces, then there are known conditions which could be communicated to the user, yes?

Aside from reflection, which makes sense, which other conditions will break merging?
Back to top
View user's profile Send private message
james.davies



Joined: 19 Apr 2011
Posts: 46

PostPosted: Thu Jul 14, 2011 7:07 pm    Post subject: Reply with quote

Merging and possible failure modes (see troubleshooting section) are described here:
http://www.red-gate.com/supportcenter/Content?c=SmartAssembly%5chelp%5c6.0%5cSA_MergingDependencies.htm&p=SmartAssembly

You should be able to process the entire project as described here
http://www.red-gate.com/supportcenter/Content?p=SmartAssembly&c=SmartAssembly/help/6.0/sa_silverlight.htm&toc=SmartAssembly/help/6.0/toc1362558.htm
_________________
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