When running from a network share, my application throws the following exception:
That assembly does not allow partially trusted callers.
My application references two DLL files:
- BitFactory.Logging.dll
- FileHelpers.dll
I'm not sure which one it is having problems with.
AllowPartiallyTrustedCallersAttribute
: Read up on it, but I do not have the source for either of the DLL files, so I'm not able to add the attribute to those DLL files.CASPOL.EXE
: added my network share using a few variations, such ascaspol -machine -addgroup 1. -url \\netserver\netshare\* LocalIntranet
nothing seems to affect.
I've used CASPOL hack before, with .NET 3.5, however, it seems to not work with .net 4.0 now. Can anyone suggeest on how I can bypass this "Partially Trusted Caller" check?
Thanks.