关于Server Error in '/' Application.错误
2016-02-25 15:48
363 查看
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>
先贴上错误,本人在项目完成时,一切都看似那么完美的时候,霹雳出现了。如上所示:遇到此错误····网上查阅相关解决办法·· 都没有得到解决。于是按照报错信息修改,发现并没有用··· 无奈··。
先说说如何遇到此问题的吧。在写一个人员简介输入框的时候遇到,由于需要,要限定输入框输入的字符个数(200-600),由于测试,你总不能次次都弄个200字吧··所以本人偷懒,把正则范围限定为10-20,进行测试。很是满意。到最后项目完成。限定改为200-600的时候,老老实实的搞了200个字左右,提交的时候遇到了这个错误···。
经过仔细调查,发现只要<200字就没事。随后就考虑到存储文本框数据大小的问题。最后翻翻翻,找到问题所在,由于大意,存储改数据数据库的字段为varchar(50),顿时都有种想尿的感觉····。
所以大家如若遇到这样的错误,要仔细去看细节,包括数据大小,数据类型,此文仅提供大家解决思路和借鉴经验。若没有帮到大家,我表示遗憾,“~~猿”别急,冷静。从细节开始。
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>
先贴上错误,本人在项目完成时,一切都看似那么完美的时候,霹雳出现了。如上所示:遇到此错误····网上查阅相关解决办法·· 都没有得到解决。于是按照报错信息修改,发现并没有用··· 无奈··。
先说说如何遇到此问题的吧。在写一个人员简介输入框的时候遇到,由于需要,要限定输入框输入的字符个数(200-600),由于测试,你总不能次次都弄个200字吧··所以本人偷懒,把正则范围限定为10-20,进行测试。很是满意。到最后项目完成。限定改为200-600的时候,老老实实的搞了200个字左右,提交的时候遇到了这个错误···。
经过仔细调查,发现只要<200字就没事。随后就考虑到存储文本框数据大小的问题。最后翻翻翻,找到问题所在,由于大意,存储改数据数据库的字段为varchar(50),顿时都有种想尿的感觉····。
所以大家如若遇到这样的错误,要仔细去看细节,包括数据大小,数据类型,此文仅提供大家解决思路和借鉴经验。若没有帮到大家,我表示遗憾,“~~猿”别急,冷静。从细节开始。
相关文章推荐
- SourceProvider.getJniDirectories
- 我是运营,我没有假期
- Seafile Server本地权限提升漏洞(CVE-2014-5443)
- 从USB安装Ubuntu Server 10.04.3 图文详解
- Trac 中文语言安装
- 软件 bug 的生命周期
- 使用zabbix监控Nginx活动状态--Part1
- 高效访问Internet-启用ISA Server的缓存
- windows server域用户提升到本地更高权限组中的方法
- 完美解决SQL Server 安装问题:以前的某个程序安装已在安装计算机上创建挂起的文件操作
- Firefox2中输入框丢失光标bug的解决方法
- IIS 错误 Server Application Error 详细解决方法
- DB2数据库的安装
- 在WINXP系统上安装SQL Server企业版的方法
- SQL Server 存储过程的分页
- C#实现把指定数据写入串口
- “传奇”图象数据存储方式
- SQL Server复制需要有实际的服务器名称才能连接到服务器
- SQL Server 2000向SQL Server 2008 R2推送数据图文教程