asp.net网站的web.config文件要改成web.config.bak才可以访问网站,否则报500错误
等到能访问网站了在进行数据库连接时ServerErrorin'/'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>
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>
小弟贫穷 快要失业了 希望各位大哥大姐帮帮忙 展开
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>
小弟贫穷 快要失业了 希望各位大哥大姐帮帮忙 展开
2个回答
展开全部
没有安装AJAX
.net 2.0默认不带AJAX支持,需要另外下载一个ASP.NET AJAX的安装包安装。
System.Web.Extensions是微软AJAX的名称空间,因为.NET2.0如果不安装AJAX安装包的话是不支持该名称空间的,你购买的空间说支持AJAX是因为他支持的JS的AJAX,而你这里是使用.NET的AJAX组件,是需要System.Web.Extensions的,就像System.Web一样
.net 2.0默认不带AJAX支持,需要另外下载一个ASP.NET AJAX的安装包安装。
System.Web.Extensions是微软AJAX的名称空间,因为.NET2.0如果不安装AJAX安装包的话是不支持该名称空间的,你购买的空间说支持AJAX是因为他支持的JS的AJAX,而你这里是使用.NET的AJAX组件,是需要System.Web.Extensions的,就像System.Web一样
追问
大哥谢谢你 问题解决了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
web.config找到customErrors这个节点,把mode属性设置为Off,服务器才会将应用程序错误输出.你先这样子改了,再浏览网站,看到具体错误才能进行调试和修改
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
web.config找到customErrors这个节点,把mode属性设置为Off,服务器才会将应用程序错误输出.你先这样子改了,再浏览网站,看到具体错误才能进行调试和修改
追问
大哥谢谢你 问题解决了
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询