Sunday, March 10, 2013

POS for .NET with .NET 4 applications

I have a .NET dll that uses POS for .NET to handle devices. I'm integrating with a program that's running in .NET 4.0. This results in PosExplorer not being able to return from the cstr. In some situations this may be causing execeptions, but in my case it's not reporting any errors at all.

In the ApplicationName.exe.config for the exe that is running the DLL put in

      <NetFx40_LegacySecurityPolicy enabled="true"/>

Note: The configuration section will probably already exist, so just stick the runtime section in there. If the application does not have a .config file, then create one. It needs to be named ApplicationName.exe.config

Support thread:

Tool used to debug:

MSDN doc:

No comments:

Post a Comment

There was an error in this gadget