程序在本地运行好好的,上传到服务器就出错

crazybozy 2014-10-28 08:40:55
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>


各位大神帮忙看看呀 jianzhan.lcsos.com
...全文
215 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
rokerker 2014-12-17
  • 打赏
  • 举报
回复
环境问题,比对发布机器跟你本机设置有什么不一样的,少了什么组件或者权限不够高
slwsss 2014-10-28
  • 打赏
  • 举报
回复
<customErrors mode="Off"/> 看下出什么问题了
chenhaoying 2014-10-28
  • 打赏
  • 举报
回复
把错误放开看看是什么详细错误。 一般有几种情况: 1、数据库连接不对。 2、iis版本不对。 3、配置文件有控件标签服务器上没安装。

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧