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

Is .NET 4.0 still supported with version 7?

The reason I ask this question is that I have a NET 4.0 application that I have obfuscated with SA 7.0.3.2212 and I'm getting errors as soon as the program starts (within the Main).
Protecting the same exe with version 6.10.0.220 works fine.
The errors I'm experiencing happen on Windows XP (hence the .NET 4.0 requirement) and seem very basic - nothing to do with my code. For instance, updating the Configuration file to import the UserSettings values.
The exceptions are TypeLoadException and TypeInitializationException (I have the exception details if required).
Thanks,
Martin.
MartinH
0

Comments

13 comments

  • Russell D
    Yes it is. Exception details and a build log would be good.
    Russell D
    0
  • MartinH
    I have the exception details saved to disk, but I see I can't attach files in the forums. How should I send you the files? Also, how do I generate a build log?
    Regards,
    Martin.
    MartinH
    0
  • Russell D
  • tdubois
    I have the same problem.
    My application targets .Net Framework 4.
    When it's obsfucated with SmartAssembly 6.13.3.1314 and runs on Windows 7 with only .Net Framework 4 installed, it runs without problems.
    When it's obfucated with SmartAssembly 7.0.5.2336 and runs on on Windows 7 with only .Net Framework 4 installed, I have this error : System.TypeLoadException : Unable to load type 'System.Runtime.CompilerServices.ExtensionAttribute' from the assembly 'mscorlib, Version=4.0.0.0'.
    If I install .Net Framework 4.5, I don't have this error anymore.

    tdubois
    0
  • Russell D
    We identified what the cause of it is and are working on it. SA-2157 for reference.

    Russell D
    0
  • madffm
    We also have this problem.
    It's very serious for us because we still have some customers with WinXP.
    How long do you think the fix will take?
    Please consider this a high priority bug for us.
    Thanks
    madffm
    0
  • Victoria W
    This bug has been fixed, please download the latest version of SmartAssembly here:
    https://download.red-gate.com/checkforupdates/SmartAssembly/SmartAssembly_7.0.6.2383.exe 
    Victoria W
    0
  • tdubois
    I confirm that the bug is NOT fixed. I have the same problem with the version 7.0.6.2383.
    tdubois
    0
  • madffm
    same here :/
    madffm
    0
  • Alex B
    Hi All,

    After speaking to the team, there is a PR for the fix but it has not yet been merged.  The bug report was marked as fixed in 7.0.4 which is why Victoria sent the link, but that's not the case (as you've seen).  I'll update here when the fix has been merged.

    Apologies for the confusion!

    Kind regards,
    Alex
    Alex B
    0
  • Alex B
    Hi All,

    The team have let me know the PR has been merged and this should now be fixed in version 7.0.7 which you can download here:

    https://download.red-gate.com/checkforupdates/SmartAssembly/SmartAssembly_7.0.7.2439.exe

    Kind regards,

    Alex

    Alex B
    0
  • madffm
    I can confirm that the problem is resolved.
    madffm
    0
  • Russell D
    Great, thanks.
    Russell D
    0

Add comment

Please sign in to leave a comment.