Why publishing to IIS is change for ASP.net core ?

守給你的承諾、 提交于 2019-12-12 03:44:18

问题


When I publish under Visual Studio 2015 CTP 5 then I don't have to do setting for application pool CLR version.

Now for ASP.net core application and as per documentation (http://docs.asp.net/en/latest/publishing/iis.html) we have to do setting for application pool clr to No managed code.

Why it is like that ?


回答1:


ASP.NET Core applications no longer run inside IIS but run out-of-process and IIS acts only as a reverse proxy. This functionality is provided by the AspNetCoreModule which is a native IIS module. Since no managed code runs in the IIS process it is recommended to set application pool as "No managed code". I wrote a detailed blog post describing how ASP.NET Core applications are running with IIS. You can find it here.




回答2:


This is because ASP.NET Core runs as a plain old command line application outside of the IIS. Therefore, IIS is merely a pass-through to Kestrel, which is the ASP.NET Core web server which runs in it's own separate process. This platform is what provides the cross-platform capabilities of .NET Core.



来源:https://stackoverflow.com/questions/38035632/why-publishing-to-iis-is-change-for-asp-net-core

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!