[英]I try to run some samples in VS
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
错误1使用超出应用程序级别注册为allowDefinition ='MachineToApplication'的节是错误的。 This error can be caused by a virtual directory not being configured as an application in IIS.
此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的。 C:\\Users\\rzv\\Desktop\\WebSamples\\Backup\\WebSamples\\Web.config 49
C:\\ Users \\ rzv \\ Desktop \\ WebSamples \\ Backup \\ WebSamples \\ Web.config 49
when I try to run http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx in VS 2010. What's wrong and why do I get IIS error when I run something in VS? 当我尝试运行http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt VS 2010中的.aspx 。出了什么问题?为什么在VS中运行某些内容时出现IIS错误?
Edit 编辑
When you convert a project from VS 2008 to VS 2010, it creates a folder /backup/ inside of the application. 将项目从VS 2008转换为VS 2010时,它会在应用程序内部创建一个文件夹/ backup /。 When you run the project, it is trying to run the project and the subfolder /backup/, which contains a
web.config
file. 当您运行项目时,它正在尝试运行项目以及包含
web.config
文件的子文件夹/ backup /。 Move the /backup/ folder to another location and it should work. 将/ backup /文件夹移动到另一个位置,它应该可以工作。
In general, you can't run an application from a subfolder of another application if it uses application-level settings in its configuration file web.config
. 通常,如果另一个应用程序的子文件夹在其配置文件
web.config
使用了应用程序级别的设置,则无法从该应用程序的子文件夹运行该应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.