C# NET Framework如何确定区域?
我得到了以下错误,但我很困惑为什么.NET认为这个DLL位于internet区域,而它显然位于Intranet上。有什么想法吗 以下是NUNIT抛出的错误: Windows“记住”文件的来源 如果我正确理解错误,则是从internet下载的Nunit dll出现故障 进入windows资源管理器,选择此文件的属性。在“常规”选项卡的底部应该有一个按钮,您可以按下该按钮确认它是安全的C# NET Framework如何确定区域?,c#,.net,vb.net,C#,.net,Vb.net,我得到了以下错误,但我很困惑为什么.NET认为这个DLL位于internet区域,而它显然位于Intranet上。有什么想法吗 以下是NUNIT抛出的错误: Windows“记住”文件的来源 如果我正确理解错误,则是从internet下载的Nunit dll出现故障 进入windows资源管理器,选择此文件的属性。在“常规”选项卡的底部应该有一个按钮,您可以按下该按钮确认它是安全的 Unhandled Exception: System.TypeInitializationException:
Unhandled Exception: System.TypeInitializationException:
The type initializer for 'NUnit.ConsoleRunner.Runner' threw an exception. ---> System.Security.SecurityException: That assembly does not allow partially trusted callers.
at NUnit.ConsoleRunner.Runner..cctor()
The action that failed was:
LinkDemand
The assembly or AppDomain that failed was:
nunit-console-runner, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77
The method that caused the failure was:
NUnit.Core.Logger GetLogger(System.Type)
The Zone of the assembly that failed was:
Internet
The Url of the assembly that failed was:
file://fs1/pc/Tools/dlls/NUnit/NUnit/bin/net-2.0/lib/nunit-console-runner.DLL
--- End of inner exception stack trace ---
at NUnit.ConsoleRunner.Runner.Main(String[] args)
at NUnit.ConsoleRunner.Class1.Main(String[] args)