无法读取配置文件 ' 试图从文件 '\?<EMPTY>' 中读取配置数据,行号 '0' [英] Cannot read configuration file ' trying to read configuration data from file '\?<EMPTY>', line number '0'

查看:23
本文介绍了无法读取配置文件 ' 试图从文件 '\?<EMPTY>' 中读取配置数据,行号 '0'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应用程序池每次启动时都会停止,并在应用程序日志中显示此错误:

An app pool kept stopping every time it was started and gave this error in the application logs:

应用程序池APP_POOL_NAME"的工作进程遇到了错误无法读取配置文件"试图读取配置来自文件 '\?<EMPTY>' 的数据,行号 '0'.数据字段包含错误代码.

The worker process for application pool 'APP_POOL_NAME' encountered an error 'Cannot read configuration file ' trying to read configuration data from file '\?<EMPTY>', line number '0'. The data field contains the error code.

一些用户注意到这发生在 Windows 10 秋季更新之后.

Several users have noted this occurs after the Windows 10 Fall Update.

推荐答案

如果您最近安装了 Windows 10 Fall Creators Update,这篇 Microsoft 知识库文章.解决办法:

If you recently installed the Windows 10 Fall Creators Update, this problem and a solution for it may be covered in this Microsoft knowledge base article. The solution:

  • 打开管理员命令提示符(不是 Powershell 提示符)
  • 运行:net stop WAS/y
  • 运行:rmdir/s/q C:inetpub empappPools
  • 运行:net start W3SVC
  • Open an Administrator Command Prompt (not a Powershell prompt)
  • Run: net stop WAS /y
  • Run: rmdir /s /q C:inetpub empappPools
  • Run: net start W3SVC

感谢 @weir 报告此问题.

在这种情况下,这不是权限错误,但最好确保 IIS_IUSRS 可以访问您的站点配置,以防万一.请参阅此处有关如何执行此操作的步骤.

This wasn't a permission error in this instance, but it's would be well worth ensuring IIS_IUSRS has access to your site config just in case. See here for steps on how to do this.

这个问题似乎是 IIS 临时文件中出现了一个虚拟目录,它指向了错误的位置.修复:

This issue appeared to be a virtual directory appeared in the IIS temp files, which was pointing to the wrong place. To fix:

  1. 转到安装 IIS 的驱动器,例如.C:inetpub empappPools
  2. 删除与您的应用程序池同名的目录(或虚拟目录).
  3. 重新循环/启动您的应用程序池.

这篇关于无法读取配置文件 ' 试图从文件 '\?&lt;EMPTY&gt;' 中读取配置数据,行号 '0'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆