{x:Static ... StaticExtension Erro

.NET obfuscator and automated error reporting

{x:Static ... StaticExtension Erro

Postby Adauto » Thu Jan 27, 2011 4:46 pm


Our compoany works with WPF and VB.Net, and we're having a error with an x:static resource after obfuscation.
We're using a shared/static property of a class to define a Text of a TextBlock.

The XAML code where the error is (we got that its this line cause if we remove it the error goes away):

Code: Select all
<TextBlock Name="Pesquisa_1" >
      <x:Static Member="S9_ProdServ:Classe_ProdServ_Configuracoes.PESQUISA_1_Compartilhada" />

And the class that has the property is:

Code: Select all
    Public Shared ReadOnly Property PESQUISA_1_Compartilhada As String
            Return "Ps1"
        End Get
    End Property

Error: Provide value on 'MS.Internal.Markup.StaticExtension'threw an expcetion.

I already tried to change the way it access the static property, put it on a resource, but it into a binding... But with no sucess.

How can i solve this problem?

Thank you in advance. [/code]
Posts: 1
Joined: Thu Jan 27, 2011 4:33 pm

Postby Brian Donahue » Fri Jan 28, 2011 5:54 pm

The Red Gate knowledge base gives you the gist of how to troubleshoot WPF obfuscation failures. More often than not, SA does not work out of the box with WPF.
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Return to SmartAssembly 5

Who is online

Users browsing this forum: No registered users and 0 guests