The 15-Second Delay Cause

5 days ago I mentioned that we were seeing a 15-second delay with our ASP.NET application running IIS. For some reason, using anything in System.Web.Extensions.dll (the JSON serialization stuff in MS's AJAX framework) caused a paused the first time it was loaded. Well, we finally found out what the problem was. It's all due to WinVerifyTrust. Check out these articles:

Seems like the solutions/workarounds are not that good. We don't want to turn off CRL, nor do we want to install a hot-fix to minimize the timeout value. We also have no control over this assembly since it comes from Microsoft [1]. (It's funny to see that the vendors gave up on Authenticode signing because of this issue). Therefore, we're probably going to abandon Microsoft's code and see if we can use other alternatives.

[1] I could run my add-in and do some fancy-dancy recompilation, or I could do the ildasm/ilasm dance, but both are very sucky (and probably "illegal") options.

* Posted at 03.21.2007 10:51:07 AM CST | Link *

Blog History