您的位置:首页 > 移动开发

关于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),顿时都有种想尿的感觉····。

  所以大家如若遇到这样的错误,要仔细去看细节,包括数据大小,数据类型,此文仅提供大家解决思路和借鉴经验。若没有帮到大家,我表示遗憾,“~~猿”别急,冷静。从细节开始。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  数据 错误 bug erroe server