What are the challenges you face when working across database platforms? Take the survey
Options

Dependecies Merging removes property accessors

Hi,
we ran into the problem with merged assemblies. I tried to merge the assemblies without any obfuscation.
Afterwards the property accessors seems to be removed.
Most of the code still works.
But when accessing a property in linq, it fails with an exception "System.ArgumentException" xy-method is no property accessor.
Also in debug VS cannot access the properties.
It seems that only the get method is left and the property accessor is removed.
Here is the complete callstack
System.ArgumentException: Die SF6ClientDatasetManager.get_CurrentDataset-Methode ist kein Eigenschaftenaccessor.
bei System.Linq.Expressions.Expression.GetProperty(MethodInfo mi)
bei System.Linq.Expressions.Expression.Property(Expression expression, MethodInfo propertyAccessor)
bei SF6.SF6Reader.DeleteOldDataset(String[] ) in SF6Reader.cs:Zeile 684.
bei System.Linq.Expressions.Expression.GetProperty(MethodInfo mi)
bei System.Linq.Expressions.Expression.Property(Expression expression, MethodInfo propertyAccessor)
bei SF6.SF6Reader.DeleteOldDataset(String[] ) in SF6Reader.cs:Zeile 684.

How can we prevent this error?

Thanks
Matthias
Tagged:

Answers

  • Options
    Hi @madffm

    This looks like a question that one of Support engineers will need to investigate for you.

    If you've a got support contract, please send us a ticket. Provide as much information as you can - screenshots of any errors, log files etc – so we can help you as fast as possible.

    If you're not covered by a Support contract at the moment, email our Sales team at sales@red-gate.com, and they'll be able to help.
    Customer Support
    Redgate Software
  • Options
    ravikrishnaravikrishna Posts: 7 New member
    Have you got any update on this? We're also facing the same issue. There's a property accessor which uses linq, and at that place the runtime fails with the "System.ArgumentException. The method 'x.x.x' is not a property accessor"
  • Options
    Is there any news regarding this problem?
Sign In or Register to comment.