我在单位的服务器上配置好了运行ASP.NET的环境,建了一个*.html主页,做了一个链接,链到Default.aspx可运行时点击链接后弹出错误提示:
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>
 
一堆看了又看也看不懂的英文,估计不出那出了问题?网站的配置、服务器SQL还是程序代码?
请各位仁兄指点

解决方案 »

  1.   

    改成这样<customErrors mode="Off" defaultRedirect="mycustompage.htm"/> 
      

  2.   

    在web.config中添加<customErrors mode="Off" defaultRedirect="mycustompage.htm"/>,這樣再運行時就可以看到出錯信息了
      

  3.   

    以上5个楼主的回复俺都尝试了,不好使啊.
    在服务器端运行IE提示28行<authentication mode="Windows"/>有问题.做好了网页运行 Visual studio 2005 生成工具栏下的/生成网站,这种方式是不是所说的编译啊.问题差哪呢?
      

  4.   

    可能是iis权限问题,需要设置成windows集成环境
      

  5.   

    很大可能还是权限的问题,
    你试着看看目录里有没有iis_wpg用户
      

  6.   

    怪了,我发的图片怎么看不到?我是点击上面的插入图片,在弹出的对话框中输入d:/cc.gif
    怎么没显示图片呢?
      

  7.   

    低价转让:中#美#爱#梯#科技.Net软件工程师培训课程内容(共35G),声音清晰,课程完整!
    需要这个培训视频的朋友请联系 QQ 936652114