请各位高手帮帮小弟解决这个问题,高分求教!(急啊)

test111111 2003-08-23 11:37:51
本人按照数据库中的某一个字段的模糊查询,然后调用一个窗口出来,该窗口中有一个DATAGrid控件,用于返回查找到的数据,然后点选择的时候就把该条记录返回到前一页面。

在本机调试的时候没有问题一切都可以,但是在生成好之后,访问就出错,出错问题如下:

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>


...全文
31 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
cmsoft 2003-08-23
  • 打赏
  • 举报
回复
如果不行的话,给你对应程序的目录加一个ASPNET用户的控件权限
cmsoft 2003-08-23
  • 打赏
  • 举报
回复
IIS里设置为应用程序
qiuji 2003-08-23
  • 打赏
  • 举报
回复
你定制了错误页面mycustompage.htm,
但是那个页面不存在,所以就产生错误,建一个就可以了。
zhongkeruanjian 2003-08-23
  • 打赏
  • 举报
回复
你的应用目录下没有mycustompage.htm,这个页面,请编写这个页面
kisaboy 2003-08-23
  • 打赏
  • 举报
回复
用Server.mappaht(@"./main/b.aspx")
fly_miss 2003-08-23
  • 打赏
  • 举报
回复
../../../main/b.aspx
test111111 2003-08-23
  • 打赏
  • 举报
回复
我在oa/main/cwb/a.aspx页面中要调用oa/main/b.aspx页面
但是oa这个路径我要用相对路径来表示怎么做呢,解决这个问题马上接分
test111111 2003-08-23
  • 打赏
  • 举报
回复
因为我要连接到一个页面的时候想把我请求页面的路径给传过去,那相对路径怎么写啊

62,041

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

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

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

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