Env:
Windows XP,
Visual Studio 2008,
Target Framework: .Net Framework 3.5
C#,
POS for .NET v1.12 SDK
I am developing a custom MSR Service Object (PoshMsr.cs) based on ExampleMsr.cs.
There is an issue with the TargetInvocationException exception:
1. Make sure "Strings.resources" was correctly embedded or linked into assembly "POSH_MSR_SO" at compile time,
2. or that all the satellite assemblies required are loadable and fully signed.
I don't know if it is 1. or 2.
The exception is thrown after this code in the Service Object (PoshMsr.cs)
Expand|Select|Wrap|Line Numbers
- public PoshMsr()
- {
- // Initialize ResourceManager for loading localizable strings
- rm = new ResourceManager("Strings", Assembly.GetExecutingAssembly() );
- // Initialize device properties
- Properties.CapIso = true;
- Properties.CapTransmitSentinels = true;
- Properties.DeviceDescription = rm.GetString("IDS_MSR_DEVICE_DESCRIPTION");
- }
but POSH_MSR_SO.dll is not signed.
Does the dll need to be signed and How can I sign the dll ?
Thanks