在某些机器上的统一创造容器放缓 [英] Unity container creation slowdown on some machines
问题描述
在我开发的机器都可以,但是当我尝试应用测试机上用WinXp下的sp3
我遇到了一个问题。
On my develop machine all ok, but when I try app on test machine with WinXp sp3 I encountered a problem.
方法调用包含下面的代码需要1,5分钟
The method call contains the code below takes 1,5 minute
变种C =新UnityContainer();
统一版本2.0.414.0
.Net框架v 3.5 SP1
Unity version 2.0.414.0 .Net Framework v 3.5 sp1
任何一个是否知道如何解决它?
Does any one know how to fix it?
感谢
推荐答案
请问你试机能上网吗?如果不是这样,它可以挂试图验证二进制的验证码证书。快速测试将是从源代码建立统一,并使用该DLL来代替。如果它没有再挂这是问题。有一种方法关闭在app.config文件中的证书检查;一旦我得到一个机会来关注一下吧我会更新这个答案。
Does your test machine have internet access? If not, it could be hanging trying to verify the authenticode certificate on the binary. A quick test would be to build Unity from source and use that dll instead. If it doesn't hang then that was the problem. There's a way turn off the cert check in the app.config file; I'll update this answer once I get a chance to look it up.
这篇关于在某些机器上的统一创造容器放缓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!