I'm trying to create a .NET app that reads barcode from a Motorola LS2208 scanner.
Unfortunately The app crash at the start when I try to initialize the PosExplorer
object
private void Form1_Load(object sender, EventArgs e)
{
explorer = new PosExplorer(this);
}
This is exception it generates:
System.TypeInitializationException' in Microsoft.PointOfService.dll
I'm running it on a Windows 10 PC using .NET 4.5, the same project works fine on a Windows 7 PC.
Is there any problem with POS 1.14 on W10 ?
I already tried to add this to my appconfig file but the same problems occur:
<configuration>
<runtime>
<NetFx40_LegacySecurityPolicy enabled="true"/>
</runtime>
</configuration>