System.NotSupportedException : Error calculating CLR version

tpopetpope Posts: 3
edited February 5, 2016 10:44AM in SmartAssembly
Hi,

I'm utilising the SmartAssembly software through Team City and when trying to obfuscate a merged assembly it is failing on one of the included assemblies, namely netchartdir.dll with the following error:

System.NotSupportedException : Error calculating CLR version for module netchartdir.dll

Are you able to give me any pointers how I can resolve this?

Thank you

T

Comments

  • Hi Tpope,

    We see this "Error calculating CLR version" problem occuring when the framework references of the dll in question have no specific version numbers, which SmartAssembly cannot handle. You should be able to work around the problem by recreating the dll with versioned references (via ildasm and ilasm similar to here). Or would it be possible for the creator of the assembly to just change the references to versioned framework assemblies?
    Have you visited our Help Centre?
  • Hi Russell,

    Thank you for your response, it is much appreciated.

    Following the advice you gave I have successfully managed to utilise the netchartdir.dll assembly with SmartAssembly.

    Many thanks

    T
  • Great, glad it worked for you :).
    Have you visited our Help Centre?
Sign In or Register to comment.