在FTP下的现有网站下部署asp.net网站?

时间:2012-07-12 15:19:42

标签: c# asp.net ftp

我有一个网站,我想部署另一个Web应用程序。所以我在ftp站点中创建了一个文件夹,并将所有文件转储到其中。

示例:

enter image description here

现在,我在尝试访问我的应用程序default.aspx文件时遇到错误

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 33:       </assemblies>
Line 34:     </compilation>
Line 35:     <authentication mode="Forms">
Line 36:       <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
Line 37:     </authentication>

我不知道root网站的asp.net版本,但我是在asp.net 3.5上开发的

如何解决这个问题?

2 个答案:

答案 0 :(得分:1)

您需要将子文件夹设置为IIS应用程序

答案 1 :(得分:1)

我相信您需要进入IIS并确保将“OnlineReport”文件夹配置为应用程序