作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
nunit-console.exe
在我尝试从映射网络驱动器执行时抛出以下错误
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.6.3.13283, 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:///Z:/jenkinsworkspace/workspace/FlashUpload/tools/NUnit/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)**
我尝试在 nunit-console.exe.config
中添加 loadFromRemoteSources enabled="true"
,但这并没有解决问题。
最佳答案
将其添加到 nunit-console.config 文件中。
<supportedRuntime version="v4.0"/>
从这里得到这个: Get .NET to consider a specific network share to be fully trusted :
关于nunit-console - NUnit.ConsoleRunner.Runner "System.Security.SecurityException: That assembly does not allow partially trusted callers",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21237110/
所以这是困扰我的测试套件的错误。 [07:34:36][Step 4/4] Exception has been thrown by the target of an invocation. [07:
我按照 Datomic 网站上的说明进行操作:http://docs.datomic.com/getting-started.html ,但是在尝试启动 datomic shell 提示符时出现此错误
nunit-console.exe 在我尝试从映射网络驱动器执行时抛出以下错误 Unhandled Exception: System.TypeInitializationException: Th
我是一名优秀的程序员,十分优秀!