部署.NET Core ASP.NET网站

编程入门 行业动态 更新时间:2024-10-19 17:35:50
本文介绍了部署.NET Core ASP.NET网站 - HTTP错误502.5 - 进程失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试将模板项目ASP.NET Core Web Application(.NET Framework)从Visual Studio 2015发布到IIS。

我使用的Visual Studio发布到文件系统功能。

我正在使用Windows 10.

我按照指南进行了操作

我添加了一个日志文件夹,但没有创建日志。

关于如何解决这个问题的任何想法?

编辑:

从powershell运行.exe的输出:

PS C:\ TestCoreWebsite> .\Web_CoreWebNetFramework.exe 托管环境:生产内容根路径:C:\ TestCoreWebsite 现在收听: http:// localhost:5000 应用程序已启动。按Ctrl + C关闭。

然后我导航到 http:/ / localhost:5000 和示例站点工作。

解决方案

找到解决方案:

在根web.config中更改:

processPath =%LAUNCHER_PATH%

to:

processPath =。\ Web_CoreWebNetFramework.exe

I'm trying to publish the template project "ASP.NET Core Web Application (.NET Framework)" from Visual Studio 2015 to IIS.

I use the Visual Studio publish to File System feature.

I'm using Windows 10.

I followed the guide from here.

  • I set up a website in IIS and changed the Application Pool .NET CLR Version to No Managed Code
  • I instaled the .NET Core Windows Server Hosting bundle
  • I restarted my machine.

I get this error:

I added a logs folder, but no logs get created.

Any ideas on how I can solve this?

EDIT:

Output of running the .exe from powershell:

PS C:\TestCoreWebsite> .\Web_CoreWebNetFramework.exe Hosting environment: Production Content root path: C:\TestCoreWebsite Now listening on: localhost:5000 Application started. Press Ctrl+C to shut down.

Then I navigate to localhost:5000 and the sample site works.

解决方案

Found the solution:

In the root web.config change:

processPath="%LAUNCHER_PATH%"

to:

processPath=".\Web_CoreWebNetFramework.exe"

更多推荐

部署.NET Core ASP.NET网站

本文发布于:2023-11-14 00:16:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1585695.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网站   NET   Core   ASP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!