无法打开Web应用程序 [英] unable to open the web application

查看:85
本文介绍了无法打开Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的专家,



我在实时服务器上运行正常的Web应用程序,当我在VS 2010中的机器中打开同一个项目时iam收到错误。我通过file-> open->网站打开文件





错误1使用注册为的部分是错误的allowDefinition =''MachineToApplication''超出应用程序级别。此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的。



你可以帮助我,但我机器上开发的网络应用程序运行良好请帮助我。我在网上搜索,我可以找到任何解决方案。

Dear Experts,

I have an web application running fine in live server, when i opened the same project in my machine in the VS 2010 iam getting the error. i opened the file by file->open->website


Error 1 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.

Can u pls help me out,but the web application developed in my machine is running fine pls help me out. i searched all over the net i could find any solution.

推荐答案

通常,当您在应用程序根文件夹中有多个Web.Config文件时会发生这种情况。

只要检查一下是否有多个。如果是这样,请删除重复的副本。



阅读此处解决的类似问题: ASP.NET 2.0& allowDefinition =''MachineToApplication''错误消息 [ ^ ]



讨论类似问题的其他有用链接:部分注册为allowDefinition =''MachineToApplication'' [ ^ ]
Generally this happens when you have more than one Web.Config file in your application root folder.
Just check if you have more than one. If so, remove the duplicate copies.

Read a similar issue resolved here:ASP.NET 2.0 & "allowDefinition=''MachineToApplication''" error message[^]

Other useful link that has similar issue discussed: section registered as allowDefinition=''MachineToApplication'' [^]


这篇关于无法打开Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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