元素"buildProviders"不能在应用程序级别以下定义 [英] the element 'buildProviders' cannot be defined below the application level

查看:107
本文介绍了元素"buildProviders"不能在应用程序级别以下定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了在Visual Studio 2010中开发的asp.net C#应用程序,该应用程序在PC上运行时没有任何错误,但是当我尝试在装有Visual Studio 2010的另一台计算机上运行同一应用程序时,出现以下错误,

I have created an asp.net C# application developed in visual studio 2010, which is running without any error on my PC, but when i tried to run the same application on another computer with visual studio 2010, it gives following error,

不能在应用程序级别以下定义元素'buildProviders'.

The element 'buildProviders' cannot be defined below the application level.

推荐答案

您可能需要将虚拟目录转换为应用程序.我在部署应用程序(使用NancyFX)时遇到了这个问题.

You probably need to convert the virtual directory to application. I encountered this when deploying my app (using NancyFX).

您可以打开IIS管理器->右键单击Web应用程序目录->单击转换为应用程序".

You can open IIS Manager->Right-click the diretory of your web application->Click Convert to Application.

这篇关于元素"buildProviders"不能在应用程序级别以下定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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