在IIS上发布的项目,登录、修改操作都没有问题,但是注册时候就出以下的错误。这是在访问服务器时出的错
各种求。各位高手解答!!!急Server Error in '/DL' 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>
 
哥哥们赶紧进来看一看 瞧一瞧..... 走过路过千万不要错过啊!
在家靠父母,出门靠朋友!!!!!

解决方案 »

  1.   

    web.config  创建customErrors节点把mode设为Off
      

  2.   

    <configuration>
      <system.web>
      <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm" mod="off"/>
      </system.web>
    </configuration>
      

  3.   

    defaultRedirect="mycustompage.htm" 这个后面添加的是主页么
      

  4.   

    <configuration>
      <system.web>
      <customErrors mode="Off" />
      </system.web>
    </configuration>
     
    这样既可输出错误了
      

  5.   

    哥哥报错...   不允许使用mod..... 
      

  6.   

    改了以后报登录数据库失败!!!  但是select和update都可以 就是不能insert
      

  7.   


    我在服务器上看到的错误是登录数据库失败.(注册模块,其他都OK)
    在我自己电脑访问的话就报:
    Server Error in '/DL' Application.
    --------------------------------------------------------------------------------Runtime Error  
    !!
    能否帮忙解决下下.
      

  8.   

    意思是不是把catch里面的错误信息关掉 然后调试程序?
     我在VS上运行是完全无有错误的.但是到IIS上就出错了  对与我这菜鸟来说还真不知道从何入手.
      

  9.   


    在VS中调试的时候是无问题的  但是一到IIS上就有问题了.
      

  10.   

    文件夹权限的设置下,安全把everyone权限设置成完全控制,再试一下
      

  11.   


    你insert的sql是不是有問題?Runtime Error   是超時了。sql相應的時間太長。你insert語句有問題吧
      

  12.   

    insert语句应该不会错吧...  我只插了几个列... (在VS里随意插)
    文件夹权限这个是怎么设置的  希望大哥详细的说一下   刚接触IIS  有点搞不明白啊..
      

  13.   

    everyone 要设在那个文件夹的哦 - -  有点迷茫看不懂啊.
      

  14.   

    关于楼主这个错误表示,在IIS出错的时候,它有两个选项,第一个就是把错误的原始信息给最终用户看,第二个就是自定义错误页面。默认是不把错误的原始信息返回给浏览器的。
    你可以在web.config里面把这个选项设置一下,这样你就可以看到原始错误了。
    在 web.config文件中,找到
     <system.web>
    一节,看看有没有
        <customErrors mode="Off"/>如果是on,就改成off,如果没有,就加上这一节。然后你就可以看到原始错误了,就可以看到是不是你的insert有问题。
      

  15.   

    我注意到你写的这个<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>请把它改成
      <customErrors mode="Off"/>
      

  16.   

    我的insert 语句是 insert into XXX(id,name,passwor,wordcode) values(1,'XX','XXXXX',1234567)只有这一条...
    但是还是无法执行
     
      <customErrors mode="Off"/>mode="off" 已经有了但是还是无用.
      

  17.   

    insert into XXX(id,name,passwor,wordcode) values(1,'XX','XXXXX',1234567)你把它谢谢在SQL 查询分析器里面去执行呢?
      

  18.   

    文件权限我都改成everyone了
      

  19.   

    写在SQL查询分析器里面执行也不报错啊 只要不上IIS就没问题 一发布到IIS上就出这个问题..
    调试的时候真的一点问题都没.