How do I prevent IIS from compiling website?

前端 未结 5 1034
北荒
北荒 2021-02-08 10:46

I have an ASP .NET web application which on the backend is talking to an ASMX web service. We have counted and the average wait time for the initial request is 20s. I am wonderi

5条回答
  •  青春惊慌失措
    2021-02-08 11:44

    You should be looking to perform precompliation as part of your build/deploy scripts.

    Having a post-deployment activity to programatically request each web resource and trigger compliation seems pretty daft to me.

    Thomas' answer gives the compiler, there's also a guide over at the MSDN, How to: Precompile ASP.NET Web Sites.

    If you're using MSBuild then go for the AspNetCompiler Task.

    (I probably would have made this a comment but I'm not yet allowed... not enough SO juice)

提交回复
热议问题