初级web问题.

lightwindwind 2004-07-01 11:24:44
我用vs.net2003创建了一个WEB页面(INDEX.ASPX),里面有一个命令钮,想在代码中实现显示一消息框.在本地服务器调试成功.但上传到虚拟主机上就不行了,错误如下:
"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>"
请问这是怎么回事?

另,将vs.net生成的带有vb.net代码的页面上传,应注意什么问题?
一定结贴!
...全文
83 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
真相重于对错 2004-07-02
  • 打赏
  • 举报
回复
Global.asax 我从来不拷这个文件
真相重于对错 2004-07-02
  • 打赏
  • 举报
回复
vb.net?我对vb不太熟
Msgbox 似乎不对,.net中应该用 MessageBox.Show();
还有 MessageBox.Show 因该在winform中使用,asp.net是服务器端的技术,messagebox.show
执行是在服务器段。客户端要用js or vbs alert("foo");
Brunhild 2004-07-02
  • 打赏
  • 举报
回复
需要将以下文件放到服务器上:
Global.asax
Web.config
*.htm
*.aspx
*.asmx
bin中的*.DLL
真相重于对错 2004-07-02
  • 打赏
  • 举报
回复
dll一般放在bin下
别的随便搁,只要路径对就成
lightwindwind 2004-07-02
  • 打赏
  • 举报
回复
Brunhild:
放在哪个目录中呀
lightwindwind 2004-07-01
  • 打赏
  • 举报
回复
msgbox("xxx")
另外,我将index.aspx和webconfig文件上传至虚拟主机"wwwroot"目录下,是否还要有其它操作?
真相重于对错 2004-07-01
  • 打赏
  • 举报
回复
怎么显示消息框的,
你把web.config文件的
<customErrors mode="On"/>改为
<customErrors mode="Off"/>
看看有什么异常

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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