【发布时间】:2018-06-13 00:30:16
【问题描述】:
我有一个使用 .NET 4.5 在 IIS 上运行良好的商业网站,但在 Azure 中却失败了。
现在,在我把你带入这个兔子洞之前,我可以通过不将网站转换为应用程序,以与下面详述的 Azure 故障相同的方式制造 IIS 故障。但是,对于我的一生,我在 Azure 中找不到等效的选项;如何转换为应用程序或等效项?
我已使用 Azure 应用服务迁移助手上传到 Azure。唯一的警告是:
“IIS7+ 架构合规性:正在使用 Azure 应用服务 IIS 架构中未定义的一个或多个元素和/或属性。考虑使用 XDT 转换。”
这链接到https://docs.microsoft.com/en-nz/azure/app-service/web-sites-configure,它表示各种 Azure 应用程序设置,我玩过这些设置无济于事。
Server Error in '/' Application.
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:
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Source File: D:\home\site\wwwroot\peterfinch\service.desktop\web.config Line: 143
任何人都可以就我所缺少的内容提供任何指导吗?非常感谢您的宝贵时间,彼得·芬奇
【问题讨论】:
-
您的服务器上安装了 ColdFusion 吗?
标签: web-services azure iis