IIS 上发布ASP.NET5

原文 http://docs.asp.net/en/latest/publishing/iis.html


1、安装HTTP Platform Handler ,这个是必需的,不然无法通过IIS访问ASP.NET5生成的网站,未安装时提示错误为HTTP 500.19 : The requested page cannot be accessed because the related configuration data for the page is invalid. (下载地址在原文中有链接);

2、发布ASP.NET5网站,这个和原来的ASP.NET以往版本不同,复制 approot 和 wwwroot 到目标 IIS服务器,创建一个新的网站,设置物理路径指向 wwwroot;

3、接下来就非常重要,进入“应用程序池”找到网站的项目,双击进行程序池设置,其中.NET CLR版本为“无托管代码”,模式为“集成”

其他的就和以前ASP.NET项目发布是一样的了

posted @ 2016-01-13 11:51  Tikyang  阅读(1419)  评论(3编辑  收藏  举报