帮助:运行时错误 - '/'应用程序中的服务器错误 [英] Help: Runtime Error - Server Error in '/' Application

查看:118
本文介绍了帮助:运行时错误 - '/'应用程序中的服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我在托管公司的服务器上查看任何.aspx页面时遇到问题。

服务器是运行Windows Server 2003默认安装的新盒子。

我是第一个尝试在这个盒子上使用ASP.NET的客户端和管理员

的服务器从未设置过以前是一个ASP.NET站点,所以很可能我遇到的问题是与服务器设置有关。


请注意下面的Web.config中< customErrors mode =" Off" />存在,

但对服务器生成的错误消息没有影响。什么

服务器设置我应该建议管理员更改?


先谢谢,凯文。


这是Web.config文件:


< configuration>

< system.web>

< customErrors mode =" ;关闭&/;>

< /system.web>

< / configuration>


这是' 'test.aspx''页面我试图查看:


<%@ Page Language =" VB"的ContentType = QUOT; text / html的" ResponseEncoding =" iso-8859-1"

%>

< html>

< head>

< title>测试ASPNET< / title>

< / head>

< body>

测试ASPNET

< / body>

< / html>


这是我得到的错误:


''/''应用程序中的服务器错误。

------------------------ -------------------------------------------------- -

----

运行时错误

描述:服务器上发生了应用程序错误。此应用程序的当前自定义

错误设置会阻止应用程序的详细信息因远程查看而导致
错误(出于安全原因)。但是,可以在本地服务器计算机上运行的浏览器查看



详细信息:要使此特定错误消息的详细信息可见

在远程计算机上,请创建一个< customErrors>标记位于当前web

应用程序根目录下的web.config

配置文件中。这个< customErrors>然后,标签应该具有其模式。属性

设置为关闭。


<! - Web.Config配置文件 - >


< configuration>

< system.web>

< customErrors mode =" Off" />

< /system.web>

< / configuration>

注意:您看到的当前错误页面可以替换为自定义

通过修改defaultRedirect错误页面应用程序的属性

< customErrors>配置标记指向自定义错误页面URL。


<! - Web.Config配置文件 - >


< ;配置>

< system.web>

< customErrors mode =" RemoteOnly" defaultRedirect =" mycustompage.htm" />

< /system.web>

< / configuration>

Hi all,

I''m having trouble viewing any .aspx pages on my hosting company''s server.
The server is a new box running Windows Server 2003 default installation.
I''m the first client to try using ASP.NET on this box and the administrator
of the server has never setup an ASP.NET site before, so most likely the
problem I''m experiencing is server settings related.

Note in the Web.config below that the <customErrors mode="Off"/> is present,
but is having no affect on the error message the server is producing. What
server settings should I suggest the administrator change?

Thanks in advance, Kevin.

Here is the Web.config file:

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

Here is the ''test.aspx'' page I''m trying to view:

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1"
%>
<html>
<head>
<title>Test ASPNET</title>
</head>
<body>
Test ASPNET
</body>
</html>

This is the error I''m getting:

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>

推荐答案

在默认的Windows 2003安装中,未安装iis。管理员必须安装它并允许解析* .aspx文件。 (我在msdn中看过一些howto,但我不记得究竟在哪里。寻找互联网信息服务)
In default Windows 2003 instalation iis is not installed. The administrator must install it and allow to parse *.aspx files. (I have seen a howto somewere in msdn, but i don''t remember exactly where. Look for "Internet information services")


我相信已经安装了IIS 。服务器正确处理.htm,.html,

..asp页面。以上问题仅针对.aspx页面。


先谢谢,凯文。


" menkaur" <我***** @ discussions.microsoft.com>在留言中写道

新闻:1F ********************************** @ microsof t.com ...
I believe that IIS is installed. The server correctly handles .htm, .html,
..asp pages correctly. The above problem is specific to .aspx pages only.

Thanks in advance, Kevin.

"menkaur" <me*****@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
在默认的Windows 2003安装中,未安装iis。
In default Windows 2003 instalation iis is not installed. The



管理员必须安装它并允许解析* .aspx文件。 (我已经看过

a howto somewere in msdn,但我不记得究竟在哪里。寻找

互联网信息服务)


administrator must install it and allow to parse *.aspx files. (I have seen
a howto somewere in msdn, but i don''t remember exactly where. Look for
"Internet information services")


如果是,请执行:

管理工具 - > iis manager->本地计算机(或此服务器?) - > ASP.Net:允许。

如果它不起作用,允许永久(但它会损害服务器的顺序)
if so, do:
Administrative tools->iis manager->local computer(or this server?)-> ASP.Net: Allow.
If it does not work, allow everithing (but it will damage server sequrity)


这篇关于帮助:运行时错误 - '/'应用程序中的服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆