服务上出Server Error in '/' Application

winsalau 2003-09-23 05:06:10
在本地正常,在虚拟空间上的根目录也正常

但如果放在虚拟空间上的一个新建目录中就会出错,请问是什么原因,该如何解决?

出错提示如下:
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>
...全文
685 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
gzmino 2003-09-26
  • 打赏
  • 举报
回复
主文件放在虚拟主机的根目录,其它apsx文件放哪都行
saucer 2003-09-23
  • 打赏
  • 举报
回复
网络服务商should give you a 空间 which is a virtual directory itself
winsalau 2003-09-23
  • 打赏
  • 举报
回复
我已经发现是那个目录没有设成应用程序,方法是在IIS上把那个目录创建成应用程序
但是在网络服务商那里的虚拟空间又该怎么办呢?他不会让我远程控制的吧

请教各位了,是不是只能放在根目录上?
winsalau 2003-09-23
  • 打赏
  • 举报
回复
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。

分析器错误信息: 在应用程序级别以外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。导致该错误的原因可能是在 IIS 中没有将虚拟目录作为应用程序进行配置。

源错误:


行 37: 它为成员站点提供单独登录和核心配置文件服务。
行 38: -->
行 39: <authentication mode="Windows" />
行 40:
行 41:

但我把authentication mode 改成authentication mode="none" 还是不行喔

saucer 2003-09-23
  • 打赏
  • 举报
回复
cannot tell what's wrong, is "ip" a virtual directory? show your web.config and/or your code?
winsalau 2003-09-23
  • 打赏
  • 举报
回复
页面在此地址中http://mimiyuyu.w9.100u.net/ip/aaa.aspx
web.config 文件在http://mimiyuyu.w9.100u.net/ip/

请教请教
谢谢了
winsalau 2003-09-23
  • 打赏
  • 举报
回复
补充一下,就算是一个只有一个textbox控件的aspx页面也是这种情况
并我已经把customErrors mode改成<customErrors mode="off" />了,但提示还是没变的
saucer 2003-09-23
  • 打赏
  • 举报
回复
something else is wrong, modify your web.config to

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

so you can see the real error messages, or view the page on the server machine

62,074

社区成员

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

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

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

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