C# 使用.NET Core 2.1创建新项目后,IIS上出现事件错误9009
我使用.NETCore2.0应用程序工作了几个月。今天我开始创建.NETCore2.1应用程序。在VisualStudio上,一切正常。数据库、日志记录、服务、文件保存等等。但在IIS服务器上发布并部署后,我会出现以下错误:C# 使用.NET Core 2.1创建新项目后,IIS上出现事件错误9009,c#,iis-10,asp.net-core-2.1,C#,Iis 10,Asp.net Core 2.1,我使用.NETCore2.0应用程序工作了几个月。今天我开始创建.NETCore2.1应用程序。在VisualStudio上,一切正常。数据库、日志记录、服务、文件保存等等。但在IIS服务器上发布并部署后,我会出现以下错误: HTTP Error 502.5 - Process Failure 打开事件查看器后,我发现以下树错误: The Application Host Helper Service encountered an error trying to delete the hist
HTTP Error 502.5 - Process Failure
打开事件查看器后,我发现以下树错误:
The Application Host Helper Service encountered an error trying to delete the history directory 'C:\inetpub\history\CFGHISTORY_0000000100'. The directory will be skipped and ignored. Note that the directory may still get deleted in the future if the service restarts. The data field contains the error number.
The Application Host Helper Service encountered an error trying to delete the history directory 'C:\inetpub\history\CFGHISTORY_0000000101\schema'. The directory will be skipped and ignored. Note that the directory may still get deleted in the future if the service restarts. The data field contains the error number.
The Application Host Helper Service encountered an error trying to delete the history directory 'C:\inetpub\history\CFGHISTORY_0000000101'. The directory will be skipped and ignored. Note that the directory may still get deleted in the future if the service restarts. The data field contains the error number.
我正在寻找那些目录,但它们不存在。
为了解决此问题,我尝试了以下步骤:
- 我重新启动了IIS服务器
- 我重新启动了应用程序主机帮助程序服务
- 我安装了运行时和主机包2.1.2
- HtmlAgilityPack v1.8.5
- Microsoft.AspNetCore.App v2.1.1
- Microsoft.EntityFrameworkCore v.2.1.1
- Microsoft.NetCore.App v2.1.0
- Microsoft.VisualStudio.Web.CodeGeneration.Design v2.1.1
- Serilog.AspNetCore v2.1.1
- Serilog.Sinks.RollingFile v.3.1.0
谢谢您的建议。您需要安装托管捆绑包
然后在IIS上检查您是否已注册模块AspNetCoreModule正如您在我的帖子中看到的那样,我尝试了这个。我写道:我安装了运行时和主机包2.1.2。我检查并安装了Microsoft.NET Core 2.1.2-Windows Server Hosting(x86)IIS->选择服务器名称菜单->模块,您的发布还应创建一个包含以下内容的Web.config文件:您还需要知道您的应用程序是独立的还是依赖于框架我的应用程序依赖于框架。在我生成的web.config中,只有一个是不相关的:path=”“verb=“”,带有“*between of”“”。你有没有找到解决这个问题的方法?