Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在FTP上的现有网站下部署asp.net网站?_C#_Asp.net_Ftp - Fatal编程技术网

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

C# 在FTP上的现有网站下部署asp.net网站?,c#,asp.net,ftp,C#,Asp.net,Ftp,我下面有一个网站,我想部署另一个web应用程序。因此,我在ftp站点中创建了一个文件夹,并将我的所有文件转储到其中 例如: 现在我在尝试访问我的应用程序default.aspx文件时遇到以下错误 Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the s

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

例如:

现在我在尝试访问我的应用程序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>
配置错误
描述:处理服务此请求所需的配置文件时出错。请查看下面的特定错误详细信息,并适当修改配置文件。
解析器错误消息:在应用程序级别之外使用注册为allowDefinition='MachineToApplication'的节是错误的。此错误可能是由于未在IIS中将虚拟目录配置为应用程序造成的。
源错误:
第33行:
第34行:
第35行:
第36行:
第37行:
我不知道根站点的asp.net版本,但我是在asp.NET3.5上开发的


如何解决此问题?

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

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

这两个站点相关吗?您是否在IIS中将子文件夹设置为应用程序?第二个似乎不是真的-您必须将IIS中的子文件夹配置为应用程序。@dash:我没有访问IIS的权限。我只有FTP访问权限。我可以用FTP做些什么吗?不,很遗憾,你需要访问IIS-也许你可以让网站管理员来帮助你?我如何将其作为网站并部署到文件夹中?我需要app_data文件夹来访问某些access数据库文件。我没有访问IIS的权限。我只有FTP访问权限。我可以用FTP做些什么吗?这个网站是由托管提供商托管的吗?如果是,你可能需要联系他们,或者他们可能有一个管理功能,允许你自己做这件事。