2026年8月14日 星期五

[研究]Microsoft.ApplicationInsights 3.1.2 安裝測試

[研究]Microsoft.ApplicationInsights 3.1.2 安裝測試

2026-08-14

Application Insights 簡介 - OpenTelemetry 可檢視性

https://learn.microsoft.com/zh-tw/azure/azure-monitor/app/app-insights-overview?tabs=webapps


Microsoft.ApplicationInsights 2.23.0
https://www.nuget.org/packages/Microsoft.ApplicationInsights/2.23.0

Microsoft.ApplicationInsights 3.1.2
https://www.nuget.org/packages/Microsoft.ApplicationInsights/3.1.2

安裝 Microsoft.ApplicationInsights 2.23.0


WebApplication1 正在安裝: Microsoft.IdentityModel.Abstractions.8.14.0 OpenTelemetry.PersistentStorage.Abstractions.1.0.3 OpenTelemetry.PersistentStorage.FileSystem.1.0.3 System.Buffers.4.6.1 System.Numerics.Vectors.4.6.1 System.Runtime.CompilerServices.Unsafe.6.1.2 System.Memory.4.6.3 Microsoft.Extensions.Primitives.10.0.3 Microsoft.Extensions.FileProviders.Abstractions.10.0.3 System.Diagnostics.DiagnosticSource.10.0.3 OpenTelemetry.Api.1.15.3 System.Security.Cryptography.ProtectedData.4.5.0 System.Security.Principal.Windows.5.0.0 System.Security.AccessControl.5.0.0 System.IO.FileSystem.AccessControl.5.0.0 System.Text.Encodings.Web.10.0.3 System.Threading.Tasks.Extensions.4.6.3 Microsoft.Bcl.AsyncInterfaces.10.0.3 Microsoft.Extensions.DependencyInjection.Abstractions.10.0.3 Microsoft.Extensions.DependencyInjection.10.0.0 Microsoft.Extensions.Logging.Abstractions.10.0.3 OpenTelemetry.Api.ProviderBuilderExtensions.1.15.3 System.IO.Pipelines.10.0.3 System.ValueTuple.4.6.1 Microsoft.Extensions.Configuration.Abstractions.10.0.3 Microsoft.Extensions.Configuration.10.0.0 Microsoft.Extensions.Configuration.Binder.10.0.0 Microsoft.Extensions.Options.10.0.3 Microsoft.Extensions.Diagnostics.Abstractions.10.0.3 Microsoft.Extensions.Hosting.Abstractions.10.0.3 Microsoft.Extensions.Logging.10.0.0 Microsoft.Extensions.Options.ConfigurationExtensions.10.0.0 Microsoft.Extensions.Logging.Configuration.10.0.0 OpenTelemetry.1.15.3 OpenTelemetry.Extensions.Hosting.1.15.3 System.Formats.Asn1.8.0.1 Microsoft.Identity.Client.4.83.1 Microsoft.Identity.Client.Extensions.Msal.4.83.1 System.Text.Json.10.0.3 System.Memory.Data.10.0.3 System.ClientModel.1.10.0 Azure.Core.1.54.0 Azure.Monitor.OpenTelemetry.Exporter.1.8.0 Microsoft.ApplicationInsights.3.1.2

更新所有元件



WebApplication1 更新: Azure.Monitor.OpenTelemetry.Exporter.1.8.0 -> Azure.Monitor.OpenTelemetry.Exporter.1.8.3 Azure.Core.1.54.0 -> Azure.Core.1.61.0 System.ClientModel.1.10.0 -> System.ClientModel.1.15.0 System.Memory.Data.10.0.3 -> System.Memory.Data.10.0.11 System.Text.Json.10.0.3 -> System.Text.Json.10.0.11 Microsoft.Identity.Client.Extensions.Msal.4.83.1 -> Microsoft.Identity.Client.Extensions.Msal.4.87.0 Microsoft.Identity.Client.4.83.1 -> Microsoft.Identity.Client.4.87.0 System.Formats.Asn1.8.0.1 -> System.Formats.Asn1.10.0.11 OpenTelemetry.Extensions.Hosting.1.15.3 -> OpenTelemetry.Extensions.Hosting.1.17.0 OpenTelemetry.1.15.3 -> OpenTelemetry.1.17.0 Microsoft.Extensions.Logging.Configuration.10.0.0 -> Microsoft.Extensions.Logging.Configuration.10.0.11 Microsoft.Extensions.Options.ConfigurationExtensions.10.0.0 -> Microsoft.Extensions.Options.ConfigurationExtensions.10.0.11 Microsoft.Extensions.Logging.10.0.0 -> Microsoft.Extensions.Logging.10.0.11 Microsoft.Extensions.Hosting.Abstractions.10.0.3 -> Microsoft.Extensions.Hosting.Abstractions.10.0.11 Microsoft.Extensions.Diagnostics.Abstractions.10.0.3 -> Microsoft.Extensions.Diagnostics.Abstractions.10.0.11 Microsoft.Extensions.Options.10.0.3 -> Microsoft.Extensions.Options.10.0.11 Microsoft.Extensions.Configuration.Binder.10.0.0 -> Microsoft.Extensions.Configuration.Binder.10.0.11 Microsoft.Extensions.Configuration.10.0.0 -> Microsoft.Extensions.Configuration.10.0.11 Microsoft.Extensions.Configuration.Abstractions.10.0.3 -> Microsoft.Extensions.Configuration.Abstractions.10.0.11 System.ValueTuple.4.6.1 -> System.ValueTuple.4.6.2 System.IO.Pipelines.10.0.3 -> System.IO.Pipelines.10.0.11 OpenTelemetry.Api.ProviderBuilderExtensions.1.15.3 -> OpenTelemetry.Api.ProviderBuilderExtensions.1.17.0 Microsoft.Extensions.Logging.Abstractions.10.0.3 -> Microsoft.Extensions.Logging.Abstractions.10.0.11 Microsoft.Extensions.DependencyInjection.10.0.0 -> Microsoft.Extensions.DependencyInjection.10.0.11 Microsoft.Extensions.DependencyInjection.Abstractions.10.0.3 -> Microsoft.Extensions.DependencyInjection.Abstractions.10.0.11 Microsoft.Bcl.AsyncInterfaces.10.0.3 -> Microsoft.Bcl.AsyncInterfaces.10.0.11 System.Text.Encodings.Web.10.0.3 -> System.Text.Encodings.Web.10.0.11 System.Security.AccessControl.5.0.0 -> System.Security.AccessControl.6.0.1 System.Security.Cryptography.ProtectedData.4.5.0 -> System.Security.Cryptography.ProtectedData.10.0.11 OpenTelemetry.Api.1.15.3 -> OpenTelemetry.Api.1.17.0 System.Diagnostics.DiagnosticSource.10.0.3 -> System.Diagnostics.DiagnosticSource.10.0.11 Microsoft.Extensions.FileProviders.Abstractions.10.0.3 -> Microsoft.Extensions.FileProviders.Abstractions.10.0.11 Microsoft.Extensions.Primitives.10.0.3 -> Microsoft.Extensions.Primitives.10.0.11 OpenTelemetry.PersistentStorage.FileSystem.1.0.3 -> OpenTelemetry.PersistentStorage.FileSystem.1.1.1 OpenTelemetry.PersistentStorage.Abstractions.1.0.3 -> OpenTelemetry.PersistentStorage.Abstractions.1.1.1 Microsoft.IdentityModel.Abstractions.8.14.0 -> Microsoft.IdentityModel.Abstractions.8.22.0 正在安裝: System.Net.ServerSentEvents.10.0.9 Microsoft.Extensions.Configuration.EnvironmentVariables.10.0.0


升級 System.ValueTuple 4.6.1 到 4.6.2


WebApplication1 更新: System.ValueTuple.4.6.1 -> System.ValueTuple.4.6.2


參考下面修正

[研究]解決 System.ValueTuple 4.5.0 升級 4.6.1 或 4.6.2 問題
https://shaurong.blogspot.com/2026/08/systemvaluetuple-450-461-462.html

再再更新所有元件


WebApplication1 更新: Microsoft.Extensions.Configuration.EnvironmentVariables.10.0.0 -> Microsoft.Extensions.Configuration.EnvironmentVariables.10.0.11 System.Net.ServerSentEvents.10.0.9 -> System.Net.ServerSentEvents.10.0.11


沒有元件要升級更新了,Compile / Build 正常。
Web.Config 內容


<?xml version="1.0" encoding="utf-8"?> <!-- 如需如何設定 ASP.NET 應用程式的詳細資訊,請前往 https://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <system.web> <compilation debug="true" targetFramework="4.8" /> <httpRuntime targetFramework="4.8" /> </system.web> <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701;612;618" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008,40000,40008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </compilers> </system.codedom> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.DependencyInjection.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Configuration.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Primitives" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Logging.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Options" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Diagnostics.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Hosting.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.2.4.0" newVersion="4.2.4.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Text.Json" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Text.Encodings.Web" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Azure.Monitor.OpenTelemetry.Exporter" publicKeyToken="92742159e12e44c8" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.8.3.0" newVersion="1.8.3.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Logging" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Azure.Core" publicKeyToken="92742159e12e44c8" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.61.0.0" newVersion="1.61.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Configuration" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.DependencyInjection" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Logging.Configuration" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.IdentityModel.Abstractions" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-8.22.0.0" newVersion="8.22.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Formats.Asn1" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Security.Cryptography.ProtectedData" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Security.AccessControl" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-6.0.0.1" newVersion="6.0.0.1" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Net.ServerSentEvents" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Memory.Data" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Identity.Client" publicKeyToken="0a613f4dd989e8ae" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.87.0.0" newVersion="4.87.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Identity.Client.Extensions.Msal" publicKeyToken="0a613f4dd989e8ae" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.87.0.0" newVersion="4.87.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.ClientModel" publicKeyToken="92742159e12e44c8" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.15.0.0" newVersion="1.15.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Configuration.Binder" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="OpenTelemetry.PersistentStorage.Abstractions" publicKeyToken="7bd6737fe5b67e3c" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.1.1.1228" newVersion="1.1.1.1228" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="OpenTelemetry.PersistentStorage.FileSystem" publicKeyToken="7bd6737fe5b67e3c" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.1.1.1228" newVersion="1.1.1.1228" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Configuration.EnvironmentVariables" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.11" newVersion="10.0.0.11" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration>


Packages.config 內容



<?xml version="1.0" encoding="utf-8"?> <packages> <package id="Azure.Core" version="1.61.0" targetFramework="net48" /> <package id="Azure.Monitor.OpenTelemetry.Exporter" version="1.8.3" targetFramework="net48" /> <package id="Microsoft.ApplicationInsights" version="3.1.2" targetFramework="net48" /> <package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="4.1.0" targetFramework="net48" /> <package id="Microsoft.Extensions.Configuration" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.Configuration.Abstractions" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.Configuration.Binder" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.Configuration.EnvironmentVariables" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.DependencyInjection" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.Diagnostics.Abstractions" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.FileProviders.Abstractions" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.Hosting.Abstractions" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.Logging" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.Logging.Abstractions" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.Logging.Configuration" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.Options" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.Options.ConfigurationExtensions" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Extensions.Primitives" version="10.0.11" targetFramework="net48" /> <package id="Microsoft.Identity.Client" version="4.87.0" targetFramework="net48" /> <package id="Microsoft.Identity.Client.Extensions.Msal" version="4.87.0" targetFramework="net48" /> <package id="Microsoft.IdentityModel.Abstractions" version="8.22.0" targetFramework="net48" /> <package id="OpenTelemetry" version="1.17.0" targetFramework="net48" /> <package id="OpenTelemetry.Api" version="1.17.0" targetFramework="net48" /> <package id="OpenTelemetry.Api.ProviderBuilderExtensions" version="1.17.0" targetFramework="net48" /> <package id="OpenTelemetry.Extensions.Hosting" version="1.17.0" targetFramework="net48" /> <package id="OpenTelemetry.PersistentStorage.Abstractions" version="1.1.1" targetFramework="net48" /> <package id="OpenTelemetry.PersistentStorage.FileSystem" version="1.1.1" targetFramework="net48" /> <package id="System.Buffers" version="4.6.1" targetFramework="net48" /> <package id="System.ClientModel" version="1.15.0" targetFramework="net48" /> <package id="System.Diagnostics.DiagnosticSource" version="10.0.11" targetFramework="net48" /> <package id="System.Formats.Asn1" version="10.0.11" targetFramework="net48" /> <package id="System.IO.FileSystem.AccessControl" version="5.0.0" targetFramework="net48" /> <package id="System.IO.Pipelines" version="10.0.11" targetFramework="net48" /> <package id="System.Memory" version="4.6.3" targetFramework="net48" /> <package id="System.Memory.Data" version="10.0.11" targetFramework="net48" /> <package id="System.Net.ServerSentEvents" version="10.0.11" targetFramework="net48" /> <package id="System.Numerics.Vectors" version="4.6.1" targetFramework="net48" /> <package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net48" /> <package id="System.Security.AccessControl" version="6.0.1" targetFramework="net48" /> <package id="System.Security.Cryptography.ProtectedData" version="10.0.11" targetFramework="net48" /> <package id="System.Security.Principal.Windows" version="5.0.0" targetFramework="net48" /> <package id="System.Text.Encodings.Web" version="10.0.11" targetFramework="net48" /> <package id="System.Text.Json" version="10.0.11" targetFramework="net48" /> <package id="System.Threading.Tasks.Extensions" version="4.6.3" targetFramework="net48" /> <package id="System.ValueTuple" version="4.6.2" targetFramework="net48" /> </packages>


似乎OK。

(完)

沒有留言:

張貼留言