Web services Azure应用程序服务“;'中的服务器错误/';申请书;

Web services Azure应用程序服务“;'中的服务器错误/';申请书;,web-services,azure,iis,Web Services,Azure,Iis,我有一个商业网站,它在IIS上使用.NET4.5运行得非常好,但在Azure中失败了 现在,在我把你引向这个兔子洞之前,我可以通过不将网站转换为应用程序,以与下面详述的Azure错误相同的方式来制造IIS错误。然而,就我的一生而言,我无法在Azure中找到同等的选项;如何转换为应用程序或等效程序 我已使用Azure应用程序服务迁移助手上载到Azure。唯一的警报是: 7IS+模式遵从:一个或多个元素和/或属性在Azure App Service IIS模式中没有定义。考虑使用XDT转换。 此链

我有一个商业网站,它在IIS上使用.NET4.5运行得非常好,但在Azure中失败了

现在,在我把你引向这个兔子洞之前,我可以通过不将网站转换为应用程序,以与下面详述的Azure错误相同的方式来制造IIS错误。然而,就我的一生而言,我无法在Azure中找到同等的选项;如何转换为应用程序或等效程序

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

7IS+模式遵从:一个或多个元素和/或属性在Azure App Service IIS模式中没有定义。考虑使用XDT转换。

此链接指示各种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 

有谁能为我提供一些指导吗?非常感谢您的时间,Peter Finch

所以答案是为每个网站设置虚拟应用程序和目录,而这现在刚刚起作用。应用程序服务、应用程序设置、列表末尾的虚拟应用程序和目录。 这是缺少的部分,即如何“转换为应用程序” 所以我自己解决了这个问题,谢谢你的关注,我希望这对以后的其他人有所帮助

/                            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

您的服务器上是否安装了ColdFusion?