我有一个报表的工程。 发布到虚拟主机上后有的报表页面可以显示,然而有的页面报错(错误信息见下)。 检查路径是对的 <BR><BR>Server Error in '/' Application. <BR>-------------------------------------------------------------------------------- <BR><BR>Runtime Error <BR>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. <BR><BR>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". <BR><BR><BR><!-- Web.Config Configuration File --> <BR><BR><configuration> <BR> <system.web> <BR> <customErrors mode="Off"/> <BR> </system.web> <BR></configuration> <BR><BR><BR>Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <BR><BR><BR><!-- Web.Config Configuration File --> <BR><BR><configuration> <BR> <system.web> <BR> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> <BR> </system.web> <BR></configuration> <BR>