为什么签署加载缓慢组件? [英] Why are signed assemblies slow to load?

查看:180
本文介绍了为什么签署加载缓慢组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个奇怪的问题,这个星期我无法解释:我转我的应用程序中使用一些第三方组件(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应用程序。
  • 在电脑没有网络连接(故意的,为了安全)。

推荐答案

看一看这些链接:

  • <一个href="http://blogs.technet.com/markrussinovich/archive/2009/05/26/3244913.aspx">http://blogs.technet.com/markrussinovich/archive/2009/05/26/3244913.aspx
  • <一个href="http://blogs.msdn.com/tess/archive/2008/05/13/asp-net-hang-authenti$c$c-signed-assemblies.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.

这篇关于为什么签署加载缓慢组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆