cannot initailaize Microsoft.PointOfService in activex control
===

I am using Microsoft.PointOfService.dll to instantiate explore the printer functionality in a class library. When i am inheriting that class library from a .cs code its working fine. But when i am using that class library to create a cab file to work as an ActiveX control and calling the same method from javascript, it is not instantiating the PosExplorer and giving the exeception as "The type initializer for 'Microsoft.PointOfService.Management.Explorer' threw an exception."

I have used the config file and inserted the `<NetFx40_LegacySecurityPolicy enabled="true"/>`

Do i need any additional things to do while creating setup file.