I have a console application that references third party libraries whose source code I don't have:
1) Common.Logging.NLog, 2) Common.Logging, 3) NLog
After switching the Security option to "This is a partial trust application" (deployed in a network share drive), VS gave 4 warnings:
Warning 1 Reference 'Common.Logging.NLog' does not allow partially trusted callers.
Warning 2 Reference 'Common.Logging' does not allow partially trusted callers.
Warning 3 Reference 'NLog' does not allow partially trusted callers.
Warning 4 Use of app.config binding redirects requires full trust.
I tried the solution in C# - .NET 4.0 - That Assembly does not allow partially trusted callers by 1) Create a key using SN.EXE 2) Sign all my assemblies with this key.
After that the compiler complained that the third party libraries don't have a strong name.
Would anyone suggest a solution? I don't have direct control on the client machine, so I'd prefer a solution that doesn't require client machine configuration (for example, CASPOL.EXE).
UPDATE_1
I added <NetFx40_LegacySecurityPolicy enabled="true" />
to app.config. It went passed the first SecurityException, but died at a later point for the same error.
Thanks.