2019年10月7日 星期一

[研究] 使用 Microsoft Azure Cloud Service 雲端服務 不支援的 .NET 結果

[研究] 使用 Microsoft Azure Cloud Service 雲端服務 不支援的 .NET 結果

2019-10-07

錯誤訊息

Server Error in '/' Application.

Configuration Error

Description: An error  occurred during the processing of a configuration file require to service this require. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The 'targetFramework' attribute in the element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, ''). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.

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: E:\sitesroot\0\web.config Line: 18

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3429.0



Click 圖片可以看到 100% 原始尺寸




目前支援的版本資訊

https://docs.microsoft.com/zh-tw/azure/cloud-services/cloud-services-guestos-update-matrix

https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-guestos-update-matrix

Windows Server 2019

.NET Framework installed: 3.5, 4.7.2

*********************************************************************************
編譯警告

2>WebRole1(0,0): 警告 WAT250: The project 'WebRole1' targets '.NET Framework 4.7.2' which is not supported on the Microsoft Azure virtual machine (OSFamily = 'Windows 2012 Server R2').  To make sure that the role starts, update the 'osFamily' attribute in the service configuration file 'ServiceConfiguration.Local.cscfg'.  See https://go.microsoft.com/fwlink/?LinkId=262840 from more information.
========== 建置: 2 成功、0 失敗、0 最新、0 略過 ==========

*********************************************************************************

(完)

沒有留言:

張貼留言