CSDN的各位超级大大们,救命啊~~~~

hl198393 2006-10-28 11:05:58
在我本机上运行好好的,可是放到服务器上一段时间后就会出现下面的错误,我到服务器上查发现是点击登陆按钮后就出现这个,似乎是提交表单的时候出错,搞不清了,为什么运行一段时间后会出错呢?



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>
...全文
158 5 打赏 收藏 举报
写回复
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hl198393 2006-10-28
  • 打赏
  • 举报
回复
没有用存储过程
改了,在客户端是看不到错误的,在服务器上运行后错误是在下面这句话上
string temp=user.UserLogin(user11name.Text.Trim(),pass11word.Text.Trim());
oldmoon 2006-10-28
  • 打赏
  • 举报
回复
先将:web.config中的<customErrors>节的mode改成Off,然后看具体错误
lubosun 2006-10-28
  • 打赏
  • 举报
回复
你用存储过程了吗?
SkyIsland 2006-10-28
  • 打赏
  • 举报
回复
贴代码
股神 2006-10-28
  • 打赏
  • 举报
回复
up
发帖
.NET社区

6.1w+

社区成员

.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
帖子事件
创建了帖子
2006-10-28 11:05
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。