The type initializer for 'Inetlab.MMS.MMSMessage' threw an exception
Posted: Tue Nov 16, 2021 7:52 am
Hi,
We are trying to use the library in a .net core function project. But we get below error
The type initializer for 'Inetlab.MMS.MMSMessage' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.
File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
at s5vEEkOOTYfpG8HoP9V.JuPp3jOJKI8hNvrs3dX.n5YXMFyn5g(Byte[] )
at s5vEEkOOTYfpG8HoP9V.JuPp3jOJKI8hNvrs3dX.GetLicense(LicenseContext , Type , Object , Boolean )
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at System.ComponentModel.LicenseManager.Validate(Type type)
at Inetlab.MMS.MMSMessage.wvQ9sK8TPl7hekoNwQI(Type )
at Inetlab.MMS.MMSMessage..cctor()
We are trying to use the library in a .net core function project. But we get below error
The type initializer for 'Inetlab.MMS.MMSMessage' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.
File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
at s5vEEkOOTYfpG8HoP9V.JuPp3jOJKI8hNvrs3dX.n5YXMFyn5g(Byte[] )
at s5vEEkOOTYfpG8HoP9V.JuPp3jOJKI8hNvrs3dX.GetLicense(LicenseContext , Type , Object , Boolean )
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at System.ComponentModel.LicenseManager.Validate(Type type)
at Inetlab.MMS.MMSMessage.wvQ9sK8TPl7hekoNwQI(Type )
at Inetlab.MMS.MMSMessage..cctor()