从visual studio 2012运行站点时出现配置错误

时间:2015-11-16 10:17:30

标签: c# asp.net visual-studio-2010

我正在尝试使用内置Server中的Visual Studio 2012来运行我的网站。我收到此错误。我收到此错误(注意我没有使用虚拟目录或IIS服务器只是Visual Studio 2012):

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.

Source Error: 


Line 30:       </buildProviders>
Line 31:     </compilation>
Line 32:        <authentication mode="None">
Line 33:            <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
Line 34:       

Source File: D:\work\latest\NewPortal16-11\NewPortal8\newportal8\web.config    Line: 32 


Show Additional Configuration Errors:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249

0 个答案:

没有答案