项目从本地主机到服务器时的配置错误

时间:2012-02-29 15:38:23

标签: asp.net vb.net visual-studio-2010

当我将在我的本地计算机上运行的vb项目Visual Studio 2010带到服务器时出现错误。我将如何精确地解决它?

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 24:       ASP.NET to identify an incoming user. 
Line 25:     -->
Line 26:     <authentication mode="Windows" />
Line 27:     <!--
Line 28:        The <customErrors> section enables configuration 

1 个答案:

答案 0 :(得分:2)

尝试在服务器上创建虚拟目录:

http://msdn.microsoft.com/en-us/library/zwk103ab%28v=vs.100%29.aspx