Is .NET 4.0 still supported with version 7?
MartinH
Posts: 82 Bronze 2
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.
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.
Tagged:
Answers
Regards,
Martin.
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.
https://download.red-gate.com/checkforupdates/SmartAssembly/SmartAssembly_7.0.6.2383.exe
Victoria Wiseman | Redgate Software
Have you visited our Help Center?
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
Have you visited our Help Center?
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
Have you visited our Help Center?