简体   繁体   English

是否可以在 iis 中托管单个文件 asp.net core 5 blazor?

[英]Is it possible to host single file asp.net core 5 blazor in iis?

I want to host single file asp.net core 5 blazor - published with produce single file - with iis?我想使用 iis 托管单个文件 asp.net core 5 blazor - 使用生成单个文件发布 - ? When I do that , IIS in windows server 2016 returns status code 500 that indicates internal server error.当我这样做时,Windows Server 2016 中的 IIS 返回状态代码 500,表示内部服务器错误。

Single-file deployments are not supported in IIS, This is a known limitation of in-process hosting at least in .Net 5. IIS 不支持单文件部署,这是至少在 .Net 5 中的进程内托管的已知限制。

Please refer below thread for more info.请参阅下面的线程以获取更多信息。 https://github.com/dotnet/aspnetcore/issues/14473 https://github.com/dotnet/aspnetcore/issues/14473

500 internal error is generic issue, you may check full error message on the server. 500 内部错误是一般问题,您可以在服务器上查看完整的错误消息。 Have you installed your .net 5 bundled on server?您是否安装了捆绑在服务器上的 .net 5? You may refer to this tutorial https://windowswebhostingreview.com/simple-way-to-host-your-asp-net-core-in-iis/您可以参考本教程https://windowswebhostingreview.com/simple-way-to-host-your-asp-net-core-in-iis/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM