ASP.NET application on IIS7 - very slow startup after iisreset

后端 未结 7 1879
长发绾君心
长发绾君心 2021-02-05 16:41

I have an ASP.NET 3.5 website running under IIS7 on Windows 2008.

When I restart IIS (iisreset), then hit a page, the initial startup is really slow.

I see the f

7条回答
  •  青春惊慌失措
    2021-02-05 17:12

    We had a similar problem and it turned out to be Windows timing out checking for the revocation of signing certificates. Check to see if your server is trying to call out somewhere (e.g. crl.microsoft.com). Perhaps you have a proxy setting incorrect? Or a firewall in the way? We ultimately determined we had enough control over the server and did not want to 'call home', so we simply disabled the check. You can do this with .NET 2.0 SP1 and later by adding the following to the machine.config.

      
    

    I am not sure if you can just put this in your app.config/web.config.

提交回复
热议问题