Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用.NET Core 2.1创建新项目后,IIS上出现事件错误9009_C#_Iis 10_Asp.net Core 2.1 - Fatal编程技术网

C# 使用.NET Core 2.1创建新项目后,IIS上出现事件错误9009

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

我使用.NETCore2.0应用程序工作了几个月。今天我开始创建.NETCore2.1应用程序。在VisualStudio上,一切正常。数据库、日志记录、服务、文件保存等等。但在IIS服务器上发布并部署后,我会出现以下错误:

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
但还是一样的问题。首先,我尝试在我的电脑上的IIS服务器上解决这个问题,因为我有网络主机,而且也无法工作。我不能更改权限。在我的PC ofc中,是的,但不在提供商的网络主机服务器上

我已经安装了这些nuget软件包:

  • 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”“”。你有没有找到解决这个问题的方法?