{x:Static ... StaticExtension Erro

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, Alex.Davies, melvyn.harbour

{x:Static ... StaticExtension Erro

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

Hi,

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" >
   <TextBlock.Text>
      <x:Static Member="S9_ProdServ:Classe_ProdServ_Configuracoes.PESQUISA_1_Compartilhada" />
   </TextBlock.Text>
</TextBlock>


And the class that has the property is:

Code: Select all
    Public Shared ReadOnly Property PESQUISA_1_Compartilhada As String
        Get
            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]
Adauto
 
Posts: 1
Joined: Thu Jan 27, 2011 5:33 pm

Postby Brian Donahue » Fri Jan 28, 2011 6: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: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to SmartAssembly 5

Who is online

Users browsing this forum: No registered users and 0 guests