认证模式= QUOT;表单"错误 [英] authentication mode="Forms" Error

查看:127
本文介绍了认证模式= QUOT;表单"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了Visual Studio中的ASP.net应用程序。当它准备好了我发布网站。
我把我的网站上创建的文件夹。

I've made an ASP.net application in Visual Studio. When it was ready I did "Publish Website". I placed the created folder on my website.

当我去我的网站上的应用程序,我得到以下错误:

When I go to the application on my site, I get the following 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.

分析器错误信息:这是一个错误
 使用注册为一个部
 allowDefinition的='MachineToApplication'
 超越应用水平。此错误
 可以通过虚拟目录引起
 没有被配置为应用程序
 在IIS。

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.

源错误:

Line 47:             ASP.NET to identify an incoming user. 
Line 48:         -->
Line 49:        <authentication mode="Forms" />
Line 50:        
Line 51:         <customErrors mode="Off">

源文件:结果
 \\ CLST_SMB​​1IIS \\ WebfarmData $ \\ WEBDATA \\ winckelmans.net \\ wwwroot的\\书店\\ web.config行:49

Source File:
\CLST_SMB1IIS\WebfarmData$\WebData\winckelmans.net\wwwroot\bookstore\web.config Line: 49

结果
我该如何解决这个问题?


How do I solve this?

结果
谢谢,结果
文森特


Thanks,
Vincent

推荐答案

这是使用注册为allowDefinition =超出应用程序级别'MachineToApplication'的节是错误的。这个错误可以通过虚拟目录中引起了不被配置为在IIS中的应用程序。

"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."

,因为它说,虚拟目录没有被配置为ASP.NET应用程序。
您可能要到IIS管理控制台,进入目录的属性,并做了创建应用程序。要做到这一点:

As it says, the Virtual Directory is not being configured as an ASP.NET application. You may have to go to IIS admin console, go to directory properties and do a "Create Application". To do so :


  • 在服务器上打开IIS管理控制台中,其中应用程序发布

  • 在虚拟目录右键点击在应用程序文件发布

  • 选择属性,然后一个主属性对话框弹出。

  • 有一个应用程序设置一节。正好打在应用程序名称文本框前面的创建,然后点击确定

  • 检查虚拟目录上会出现一个不同的图标,它现在应该没问题。

这篇关于认证模式= QUOT;表单&QUOT;错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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