503 服务不可用...正在尝试从文件中读取配置数据

503 Service Unavailable...Trying to Read Configuration data from file

我试图访问我的本地网站之一并在事件日志中遇到此错误:"The worker process for application pool 'My Website' encountered an error 'Cannot read configuration file ' trying to read configuration data from file '\?\', line number '0'. The data field contains the error code."

我在网站上收到 503 服务不可用并且应用程序池已停止。

解决方案是转到 C:\inetpub\temp\appPools。就我而言,有一个带有我网站名称的快捷方式,它不会去任何地方。我删除了快捷方式并重新启动了网站。创建一个带有网站名称的文件夹,其中包含一个 .config 文件。之后,网站正常运行,应用程序池继续 运行。

这是一个奇怪的错误。我希望这会对遇到它的其他人有所帮助。