无法从资源文件加载资源

时间:2020-03-05 18:42:50  来源:igfitidea点击:

在IIS应用程序中定期获取以下错误:

Failed to load resources from resource file.

应用程序事件日志中的完整错误消息是:

Event Type:    Error

  Event Source:  .NET Runtime

  Event Category:    None

  Event ID:  0

  Date:      8/8/2008

  Time:      8:8:8 AM

  User:      N/A

  Computer:  BLAH123

  Description:

  The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The >local computer may not have the necessary registry information or message DLL files to >display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: .NET Runtime version 1.1.4322.2407- Setup Error: Failed to load resources from resource file

  Please check your Setup.

应用程序用.NET 1.1编写,但是服务器运行ASP.NET 2.0。谢谢。

更新:表示安装了ASP.NET 2.0,但默认网站文件夹以及该文件夹中的网站均设置为ASP.NET 1.1. 在网站文件夹上," ISAPI筛选器"设置为ASP.NET 2.0。我对此问题的第一个猜测是让ASP.NET 1.1和ASP.NET 2.0并排运行。

更新2:已安装ASP.NET 2.0,但所有网站都仅运行ASP.NET 1.1(长话短说,是在我开始之前发生的)。

解决方案

回答

如果没有安装ISAPI筛选器,是否会收到其他错误?

回答

我们是否在Web服务器上运行了.NET 1.1和.NET 2.0应用程序?我们这里有一些性质相似的实例,我们发现的解决方案是创建两个应用程序池,一个用于1.1个应用程序,一个用于2.0个应用程序,并相应地分配每个应用程序。

回答

当我们在重建应用程序的确切时间(在web.config更改或者纯重新编译之后)发生请求并且IIS在临时文件夹中找不到该文件时,有时会发生此错误。

回答

在"服务器故障"之前,可能会出现问题。无论如何,我从来没有弄清楚错误,所以假设它已关闭。