Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# NET Framework如何确定区域?_C#_.net_Vb.net - Fatal编程技术网

C# NET Framework如何确定区域?

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:

我得到了以下错误,但我很困惑为什么.NET认为这个DLL位于internet区域,而它显然位于Intranet上。有什么想法吗

以下是NUNIT抛出的错误: Windows“记住”文件的来源

如果我正确理解错误,则是从internet下载的Nunit dll出现故障

进入windows资源管理器,选择此文件的属性。在“常规”选项卡的底部应该有一个按钮,您可以按下该按钮确认它是安全的

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)