为什么签署加载缓慢组件?缓慢、组件、加载

2023-09-02 10:35:50 作者:12.良人拥梦

我遇到一个奇怪的问题,这个星期我无法解释:我转我的应用程序中使用一些第三方组件(Xceed Grid和他们的一些其他组件)和应用程序的签名版本开始时间走进了厕所。每次应用程序加载的签名的程序集,它需要30秒加载。从5秒申请开始到90秒。到底是什么回事?!

I encountered a strange problem this week that I can't explain: I switched my application to use the signed version of some third party assemblies (Xceed Grid and some of their other components) and the application start time went into the toilet. Each time the application loaded a signed assembly, it took 30 seconds to load. Application start went from 5 seconds to over 90 seconds. What the heck is going on here?!

其他的一些信息:

这是在.NET 3.5 SP1上运行的WinForms应用程序。 在电脑没有网络连接(故意的,为了安全)。

推荐答案

看一看这些链接:

http://blogs.technet.com/markrussinovich/archive/2009/05/26/3244913.aspx http://blogs.msdn.com/tess/archive/2008/05/13/asp-net-hang-authenti$c$c-signed-assemblies.aspx http://blogs.technet.com/markrussinovich/archive/2009/05/26/3244913.aspx http://blogs.msdn.com/tess/archive/2008/05/13/asp-net-hang-authenticode-signed-assemblies.aspx

他们可能会有所帮助。这可能是因为你的系统上的配置意味着.NET框架做很多额外的工作来验证组装。如果是这样的话,那么你可以配置它不会那么挑剔。

They might help. It could be that the config on your system means that the .NET framework is doing a lot of extra work to verify the assembly. If this is the case, then you can configure it to not be so picky.