关于Server Error in '/' Application.错误

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

  所以大家如若遇到这样的错误,要仔细去看细节,包括数据大小,数据类型,此文仅提供大家解决思路和借鉴经验。若没有帮到大家,我表示遗憾,“~~猿”别急,冷静。从细节开始。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值