问问上看到这样的一个问题,觉得很奇怪,以后没准我也会碰到,所以就打算帮他搜索下。
Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>
<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>
这似乎他的web.config
问题就是就算把 <customErrors mode="Off"/> 设置了,还是会出现上面的错误。
经过搜索得到解决方法:
“What you/they need to do is in IIS, create separate 'Application Pools'for each version of .Net. So, one for 1.1, another for 2.0 and anotherfor 3.0 etc.
Then, you/they need to go into the properties inIIS for each website, click the 'ASP.Net' tab and make sure that eachsite that is in the same Application Pool is set to use the sameversion of .Net.“
出处 http://geekswithblogs.net/ranganh/archive/2005/04/25/37613.aspx
从这里看,问题经常出现在当服务器有2种以上的.net版本,1.1, 2.0, 3.5
告诉他们要做的就是分别建一个application pool给每个版本的.net
然后他们需要进入IIS,在每个文件夹上右键属性,点asp.net选项卡,确认每个网站被设置了相对应的.net版本。
2个以上版本的.net混在一个application pool里导致上面你的那种错误。