发现大部分有文本框的网页就出现如下错误,没文本框的网页没问题
Server Error in '/' Application.
--------------------------------------------------------------------------------
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>
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.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
------解决方案--------------------------------------------------------
是发布以后出现的问题吗,
看看是不是权限问题,在iis里面,找到网站站点,右击-权限-找到用户IIS_WPG,加上权限试试
------解决方案--------------------------------------------------------
你的文本框是外带的控件还是VS.NET自带的控件
这样看不出来错误,你需要把web.config里面的compilation debug设置成true
然后在本机访问出错页面,就会出现错误的详细信息。到时候在从错误信息里面找原因。
------解决方案--------------------------------------------------------
站点一执行就出现的错误,按提示改配置文件Web.Config,看看详细的错误是什么。不过我猜想是数据库连接没设置对。