问题描述
我正在尝试将模板项目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
现在收听:
应用程序已启动。按Ctrl + C关闭。
然后我导航到和示例站点工作。
找到解决方案:
在根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.exeHosting environment: ProductionContent root path: C:\TestCoreWebsiteNow listening on: http://localhost:5000Application started. Press Ctrl+C to shut down.
Then I navigate to http://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网站 - HTTP错误502.5 - 进程失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!