How can we help you today? How can we help you today?

Silverlight Child Window Problem

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
0

Comments

3 comments

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

Add comment

Please sign in to leave a comment.