titanium-as / TitaniumAS.Opc.Client

Open source .NET client library for OPC DA
MIT License
193 stars 94 forks source link

System.TypeInitializationException. FileNotFoundException : Could not load file or assembly 'System.Configuration.ConfigurationManager #65

Closed RH3430 closed 2 years ago

RH3430 commented 2 years ago

Hello, using the tutorial I have a Exception thrown at me when compiling the code : System.TypeInitializationException HResult=0x80131534 Message=The type initializer for 'TitaniumAS.Opc.Client.Common.ComWrapper' threw an exception. Source=TitaniumAS.Opc.Client Exception interne 1 : ConfigurationException : Failed obtaining configuration for Common.Logging from configuration section 'common/logging'.

Exception interne 2 : FileNotFoundException : Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The specified file is unfoundable.

Is there a package missing or something? I have installed OPC core component x86 and activated NET Framework 3.5. Thanks in advance for your precious help !

RH3430 commented 2 years ago

Capture

RH3430 commented 2 years ago

Solution :