gpt4 book ai didi

web-services - Azure 应用服务 "Server Error in '/' Application"

转载 作者:行者123 更新时间:2023-12-03 01:43:09 25 4
gpt4 key购买 nike

我有一个商业网站,在使用 .NET 4.5 的 IIS 上运行得很好,但在 Azure 中却失败了。

现在,在我带领您深入这个兔子洞之前,我可以通过不将网站转换为应用程序,以与下面详细介绍的 Azure 故障相同的方式来制造 IIS 故障。然而,在我的一生中,我无法在 Azure 中找到等效的选项;如何转换为应用程序或同等内容?

我已使用 Azure 应用服务迁移助手上传到 Azure。唯一的警报是:

"IIS7+ Schema Compliance: One or more elements and/or attributes are being used which are not defined in Azure App Service IIS schema. Consider using XDT transforms."

此链接到 https://learn.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

任何人都可以就我所缺少的内容提供任何指导吗?非常感谢您抽出时间,彼得·芬奇

最佳答案

所以答案是为每个网站设置虚拟应用程序和目录,现在这已经起作用了。应用程序服务、应用程序设置、列表末尾的虚拟应用程序和目录。这是缺少的部分,如何“转换为应用程序”所以我自己解决了,感谢您的浏览,我希望这对将来的其他人有帮助。

/                            site\wwwroot                            Application x
/mysitename site\wwwroot\mysitename   Application
/mysitename/Console site\wwwroot\mysitename\Console\   Application x
/mysitename/Service.App site\wwwroot\mysitename\Service.App\  Application x
/mysitename/Service.Desktop site\wwwroot\mysitename\Service.Desktop Application x

关于web-services - Azure 应用服务 "Server Error in '/' Application",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50827586/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com