boo.exe
(ドライブにマップされた)ネットワーク共有から.NETアセンブリ()を実行しようとすると、部分的にしか信頼されていないため失敗します。
Unhandled Exception: System.Security.SecurityException: That assembly does not allow partially trusted callers.
at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)
at BooCommandLine..ctor()
at Program..ctor()
at ProgramModule.Main(String[] argv)
The action that failed was:
LinkDemand
The assembly or AppDomain that failed was:
boo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=32c39770e9a21a67
The Zone of the assembly that failed was:
Intranet
The Url of the assembly that failed was:
file:///H:/boo-svn/bin/boo.exe
ブログ投稿の指示に従ってfile:///H:/*
、URLとしてすべてのアセンブリを完全に信頼するポリシーを.NET構成に追加しました。.NET構成のEvaluateAssemblyツールにURLfile:///H:/boo-svn/bin/boo.exe
を入力し、boo.exeに無制限のアクセス許可(ポリシーの前にはなかった)があることに注意して、これを確認しました。
許可があっboo.exe
ても実行されません。それでも同じエラーメッセージが表示されます。
この問題をデバッグするにはどうすればよいですか?実行するアセンブリごとに何かを変更することなく、ネットワーク共有から「部分的に信頼できる」アセンブリを実行する別の方法はありますか?