Red Gate forums :: View topic - Silverlight Child Window Problem
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

Silverlight Child Window Problem

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



Joined: 14 Jul 2011
Posts: 2

PostPosted: Thu Jul 14, 2011 3:55 pm    Post subject: Silverlight Child Window Problem Reply with quote

Hi
I use SmartAssembly for my Silverlight Project (with embedded Library). Everything works fine except of the ChildWindows i use. However i got several error like:

Message: Unhandled Error in Silverlight Application The type 'FormatConverter' was not found because 'clr-namespace:Namespace.Framework.Silverlight;assembly=AddonConfigurationSilverlightClassLibrary' is an unknown namespace. [Line: 7 Position: 42] at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

or

Message: Unhandled Error in Silverlight Application Failed to assign to property 'System.Windows.Controls.Primitives.ButtonBase.Click'. [Line: 14 Position: 54] at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

If i turn off obfuscation for this project everything works again. I'm aware of the funktionality to turn obfuscation off for certain classes but this would be a never ending story. Its strange because i only get this error in childwindow context.

Is this a bug? Anything i can do?

Kind regards
Back to top
View user's profile Send private message
james.davies



Joined: 19 Apr 2011
Posts: 46

PostPosted: Fri Jul 15, 2011 2:31 pm    Post subject: Reply with quote

The first place to start is this article about using SmartAssembly with Silverlight:
http://www.red-gate.com/supportcenter/Content?c=SmartAssembly%5chelp%5c6.0%5csa_silverlight.htm&p=SmartAssembly

As you will read, some of SmartAssembly's features will not work with Silverlight applications due to technical limitations in Silverlight.

If you still experience problems with your processed assembly then you can use Error reporting to help find the cause as outlined in this article

http://www.red-gate.com/supportcenter/Content?p=SmartAssembly&c=SmartAssembly/help/6.0/SA_troubleshooting_build.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
decay



Joined: 14 Jul 2011
Posts: 2

PostPosted: Mon Jul 18, 2011 1:02 pm    Post subject: Reply with quote

thanks, i have read about this limitations of smartassembly with silverlight. The article just says, that there are limitations. Nothing about a function that would cause errors. So yes, i still get this error and i was able to figure out that mainly child windows are causing error. why?
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 594

PostPosted: Fri Jul 22, 2011 2:57 pm    Post subject: Reply with quote

Quick questions - are you apply smartassembly before or after compiling? [Always (try to) apply after everything is buildified...]
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