I installed Visual Studio 2015 RC and created the sample Web Site project.
我安装了Visual Studio 2015 RC并创建了示例Web站点项目。
I published it in Visual Studio using its publishing tool to file system. The output is:
我在Visual Studio中使用其发布工具将其发布到文件系统。输出是:
I tried to target IIS both this folder and wwwroot folder but nothing changed. I always receive an Access is Denied error.
我试图将IIS文件夹和wwwroot文件夹作为目标,但没有任何改变。我总是收到Access is Denied错误。
Checked the permissions. They are OK. I'm always able to run my other web sites...
检查权限。他们都还好。我总能运行我的其他网站......
I want to publish it targeting clrcore. But I already tried to publish it using clr and failed there too. It is the same error.
我想发布它针对clrcore。但我已经尝试使用clr发布它并在那里失败了。这是同样的错误。
How is the publishing process should be when I want to run a coreclr website in IIS? And I don't even know if it is possible to serve a coreclr project on IIS.
当我想在IIS中运行coreclr网站时,发布过程应该如何?我甚至不知道是否有可能在IIS上提供coreclr项目。
By the way there is nothing about .NET Core in application pools dialog in IIS. So I don't know what could my poor IIS do here.
顺便说一句,IIS中的应用程序池对话框中没有任何关于.NET Core的信息。所以我不知道我可怜的IIS在这里做什么。
2 个解决方案
#1
There are full instructions from MS: http://docs.asp.net/en/latest/publishing/iis.html
MS提供了完整的说明:http://docs.asp.net/en/latest/publishing/iis.html
TL;DR You need to install HTTP platform Handler. Other than that, if you could get a standard MVC 5 app to work, you should be ok. The only change I needed to make was installing the plstform handler. Of Course, In VS I publised to a folder, then copied the contents to the Web server. The root folder to the site must point to the wwwroot and the approot will be at the same level.
TL; DR您需要安装HTTP平台处理程序。除此之外,如果您可以使用标准的MVC 5应用程序,那么您应该没问题。我需要做的唯一改变是安装plstform处理程序。当然,在VS中我发布了一个文件夹,然后将内容复制到Web服务器。站点的根文件夹必须指向wwwroot,并且approot将处于同一级别。
#2
As far as I know, You can't host ASP.NET Core 5 Web Site on IIS, it works with self hosting only.
据我所知,您无法在IIS上托管ASP.NET Core 5 Web站点,它仅适用于自托管。
#1
There are full instructions from MS: http://docs.asp.net/en/latest/publishing/iis.html
MS提供了完整的说明:http://docs.asp.net/en/latest/publishing/iis.html
TL;DR You need to install HTTP platform Handler. Other than that, if you could get a standard MVC 5 app to work, you should be ok. The only change I needed to make was installing the plstform handler. Of Course, In VS I publised to a folder, then copied the contents to the Web server. The root folder to the site must point to the wwwroot and the approot will be at the same level.
TL; DR您需要安装HTTP平台处理程序。除此之外,如果您可以使用标准的MVC 5应用程序,那么您应该没问题。我需要做的唯一改变是安装plstform处理程序。当然,在VS中我发布了一个文件夹,然后将内容复制到Web服务器。站点的根文件夹必须指向wwwroot,并且approot将处于同一级别。
#2
As far as I know, You can't host ASP.NET Core 5 Web Site on IIS, it works with self hosting only.
据我所知,您无法在IIS上托管ASP.NET Core 5 Web站点,它仅适用于自托管。