简体   繁体   English

我尝试在VS中运行一些示例

[英]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.

相关问题 为什么要创建一个Try方法+ out vs检查一些默认值(即NULL) - Why would you create a Try method + out vs checking for some default (i.e. NULL) 修改 VS 生成的 gRPC 服务器代码以运行为 Windows 服务看起来不像示例 - Modifying VS generated gRPC server code to run as Windows Service looks nothing like samples 当我尝试运行脚本时,罗斯林崩溃 - Roslyn crashes when I try to run a script 如何运行IdentityServer3示例? - How to run IdentityServer3 samples? 如何在opencvsharp中构建和运行示例? - how to build and run the samples in opencvsharp? 当我尝试从Xamarin Samples运行Social Framework Demo App时遇到错误 - Getting error when i am trying to run Social Framework Demo App from Xamarin Samples 当我尝试快速查看变量时,VS 2012调试器挂起 - VS 2012 Debugger hangs when I try to quick watch variables 如何制作一些尝试方法来尝试每20秒下载一次文件,直到下载成功? - How can I make some try method to try downloading files each 20 seconds until the download was successful? 我可以在UWP上运行一些http服务器吗? - Could I run a some http server on UWP? 每当我尝试运行性能分析时,Visual Studio都会崩溃 - Visual Studio crashes every time I try to run Performance Analysis
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM