IIS托管由虚拟目录引起的问题 [英] IIS hosting problem caused by virtual directory

查看:92
本文介绍了IIS托管由虚拟目录引起的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误....



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

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



配置错误

描述:处理为此请求提供服务所需的配置文件时发生错误。请查看下面的具体错误详细信息并相应地修改配置文件。



分析器错误消息:在应用程序级别之外使用注册为allowDefinition ='MachineToApplication'的部分是错误的。此错误可能是由于虚拟目录未在IIS中配置为应用程序造成的。



来源错误:





第19行:

第20行:< httpruntime>

第21行:< authentication mode =Forms>

第22行:< forms loginUrl =Login.aspxdefaultUrl =default.aspx/>

第23行:





有人对此有所了解吗?我正在使用IIS 7.

I am getting the following error....

Server Error in '/CCAppStoreAlpha' Application.
--------------------------------------------------------------------------------

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 19:
Line 20: <httpruntime>
Line 21: <authentication mode="Forms">
Line 22: <forms loginUrl="Login.aspx" defaultUrl="default.aspx" />
Line 23:


Anyone has idea about this? I am using IIS 7.

推荐答案

您好,



您需要将其设置为应用程序在IIS中。右键单击该文件夹,打开属性并查找一个选项,其中显示make application或类似的内容。



希望它有所帮助;)
Hello,

You need to set it as as an application in IIS. Right click the folder, open the properties and look for an option that says make application or something like that.

Hope it helps ;)


检查您的文件夹,



有时如果您的Project中有两个以上的web.config文件,则会发生此错误。请移动一个web.config然后尝试
Check your folders,

Sometimes this error occurred if you have more than two web.config files in your Project.Remove one web.config and then try


我还没有为web.config所在的应用程序创建虚拟目录。我为父文件夹创建了虚拟目录。在创建子文件夹到我的web.config所在的应用程序之后我的问题解决了。

这个链接是helfpul为此。

http://forums.asp.net/t/1505132.aspx/1 [ ^ ]
I have not created the virtual directory to application in which web.config resides. I created virtual directory for parent folder. After creating sub folder to application in which my web.config resides my problem solved.
this link is helfpul for this.
http://forums.asp.net/t/1505132.aspx/1[^]


这篇关于IIS托管由虚拟目录引起的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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