Error "Could not load type System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version =4.0.0.0, Cultural=neutral, PublicKeyToken=b77a5c561934e089'."

Error "Could not load type System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version =4.0.0.0, Cultural=neutral, PublicKeyToken=b77a5c561934e089'."

book

Article ID: KB0074305

calendar_today

Updated On:

Products Versions
Spotfire Statistica 13.0 and higher

Description

When running Data Health Check node in a workspace, it gives an error message "Could not load type  System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version =4.0.0.0, Cultural=neutral, PublicKeyToken=b77a5c561934e089'."

This error message is likely due to the reason that .Net 4.5.1 or .Net 4.6.1 is not installed on user's system. 
 .Net 4.5.1 and .Net 4.6.1 is a prerequisites for Statistica 13 installation and typically automatically installed if you launched your installation using .exe rather than .msi.

Refer to this article for the version of .NET framework required for different versions of Statistica.

Issue/Introduction

Error "Could not load type System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version =4.0.0.0, Cultural=neutral, PublicKeyToken=b77a5c561934e089'."

Environment

Windows

Resolution

1. Follow this article to run System Analyzer on user's system

2. If .Net 4.5.1 (required for Statistica version 13.0) is not present in the system analysis result, install it from the Statistica installation folder (.\Install64\ISSetupPrerequisites\{439BD42A-2F5B-44c8-9FF2-BEB31BC34E63}). 
If .Net 4.6.1 (required for Statistica version 13.1 and above) is not present in the system analysis result, install it from the Statistica installation folder (.\Install64\ISSetupPrerequisites\{D88AEC72-8F72-4075-B2EA-1FF6363E0E51}).
Or you can download .NET framework installer from Microsoft.