在FTP下的现有网站下部署asp.net网站?
问题描述:
我有一个网站下面我想部署另一个Web应用程序。所以我在ftp站点创建了一个文件夹,并将其中的所有文件都存入其中。在FTP下的现有网站下部署asp.net网站?
例子:
现在我试图访问时,得到如下错误我的应用程序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
如何解决这个问题?
答
您需要设置的子文件夹作为IIS应用程序
是两个相关的网站?您是否将子文件夹设置为IIS中的应用程序?第二个肯定不是真的 - 你必须将IIS中的子文件夹配置为应用程序。 – dash 2012-07-12 15:21:34
@dash:我没有访问IIS的权限。我只能访问FTP访问权限。我可以用FTP做点什么吗? – James123 2012-07-12 15:32:28
不,不幸的是,你*需要*有权访问IIS - 也许你可以让网站管理员来帮助你? – dash 2012-07-12 15:59:59