Silverlight Child Window Problem

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Silverlight Child Window Problem

Postby decay » Thu Jul 14, 2011 3:55 pm

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
decay
 
Posts: 2
Joined: Thu Jul 14, 2011 3:49 pm

Postby james.davies » Fri Jul 15, 2011 2:31 pm

The first place to start is this article about using SmartAssembly with Silverlight:
http://www.red-gate.com/supportcenter/C ... rtAssembly

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/C ... 362558.htm
Thanks,
James Davies
Technical Support Engineer
Red Gate Software
james.davies
 
Posts: 46
Joined: Tue Apr 19, 2011 2:39 pm

Postby decay » Mon Jul 18, 2011 1:02 pm

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?
decay
 
Posts: 2
Joined: Thu Jul 14, 2011 3:49 pm

Postby Chris.Allen » Fri Jul 22, 2011 2:57 pm

Quick questions - are you apply smartassembly before or after compiling? [Always (try to) apply after everything is buildified...]
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests

cron