2012-07-12 135 views
1

我有一个网站下面我想部署另一个Web应用程序。所以我在ftp站点创建了一个文件夹,并将其中的所有文件都存入其中。在FTP下的现有网站下部署asp.net网站?

例子:

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> 

不知根站点asp.net版本,但我在asp.net上开发3.5

如何解决这个问题?

+0

是两个相关的网站?您是否将子文件夹设置为IIS中的应用程序?第二个肯定不是真的 - 你必须将IIS中的子文件夹配置为应用程序。 – dash 2012-07-12 15:21:34

+0

@dash:我没有访问IIS的权限。我只能访问FTP访问权限。我可以用FTP做点什么吗? – James123 2012-07-12 15:32:28

+0

不,不幸的是,你*需要*有权访问IIS - 也许你可以让网站管理员来帮助你? – dash 2012-07-12 15:59:59

回答

1

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

1

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

+0

我没有访问IIS的权限。我只能访问FTP访问权限。我可以用FTP做点什么吗? – James123 2012-07-12 15:27:34

+0

这个网站是由托管服务提供商托管的,如果有的话您可能需要联系他们或他们可能有一个管理功能,允许您自己做这个。 – mreyeros 2012-07-12 16:40:15