.net 4.0中的托管问题 [英] Hosting Problem in .net 4.0

查看:77
本文介绍了.net 4.0中的托管问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我将网站从VS2008升级到VS2010.它的托管显示了与IIS相关的一些问题.因此,我配置了IIS.但是仍然不起作用.

我收到以下错误消息.

Hi,

I upgraded my website from VS2008 to VS2010. It''s hosting shows some problems connected with IIS. So I configured IIS. But still it doesn''t work.

I got the following error message.

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.



我在Google上进行搜索,但找不到正确的答案...

我必须对web.config进行哪些更改?

请帮帮我...

谢谢...



I searched on the google and I couldn''t get the right answer...

What are the changes I have to make on web.config?

Please help me...

Thank you...

推荐答案

所以,谷歌说:
meh [ meeeeeeeeh [
So, google says:
meh[^], or meeeeeeeeh[^]


发生此错误的原因有很多
其中之一
检查您的应用程序.....
如果web.config也存在于其他文件夹中.
从另一个文件夹中删除它.只需要一个Web配置文件.
This error occured from many reasons
one of this
check your application.....
if web.config present in other folder also.
delete it from other folder.only one web config file is needed.


如果您的网站(由IIS托管)包含多个web.config文件(一个在应用程序级别,另一个在目录级别) ,然后在层次结构中位于其下的一个),然后除了应用程序级别的web.config文件之外,其他具有身份验证授权,成员身份,角色标签的web.config文件也导致了此问题.

这些必须放在应用程序级别的web.config文件中.


有关更多信息,请访问

IIS WebHosting
If your web site( hosted in IIS) contains multiple web.config files(one at application level and other at directory level, and one below that one in heirarchy), then other than application level web.config file,other web.config files having authentication authorization,membership,roles tags leads to this problem.

these have to be placed at application level web.config files.


For more information,visit

IIS WebHosting


这篇关于.net 4.0中的托管问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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