注册 登录
编程论坛 ASP.NET技术论坛

请问ASP.NET的运行环境要怎么配制

danhaoran 发布于 2008-04-11 09:58, 573 次点击
请问的运行环境要怎么配制,我的电脑上安装了IIS,也安装了 2005;还下载了一个dotnetfx.exe
修复....
运行
<script language="c#" runat="server">
void Page_Load()
{
Response.Write("Hello World!");
}
</script>

出现这样的错误;
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

Line 40:             (基本、简要或集成 Windows)。在 IIS 中必须禁用匿名访问。          "Forms" 您为用户提供一个输入凭据的自定义窗体(Web 页),然后
Line 41:            在您的应用程序中验证他们的身份。用户凭据标记存储在 Cookie 中。          "Passport" 身份验证是通过 Microsoft 的集中身份验证服务执行的,           它为成员站点提供单独登录和核心配置文件服务。    -->
Line 42:     <authentication mode="Forms" />
Line 43:     <!--  授权
Line 44:            此节设置应用程序的授权策略。可以允许或拒绝不同的用户或角色访问
0 回复
1