System.Reflection.CustomAttributeFormatException: 'DefaultValueHandling' property specified was not found
Azure Functions v2 (Windows)
From inside our functions we write to Cosmos DB using Microsoft.Azure.DocumentDB.Core 2.1.3.
Today (April 19th) we redeployed our code and it started failing with the exception below: 'DefaultValueHandling' property specified was not found
I decompiled the Cosmos DB client and read some of the code. So far my theory is that the JsonProperty attribute itself for some reason gets serialized into JSON, then gets deserialized again somehow. Since we did not specify DefaultValueHandling (we left it default before), this started failing.
Was there some sort of deployment done on April 19th either on the Azure Functions side, or Cosmos DB side, that could have changed anything related to JSON serialization?
That CustomAttributeFormatException exception is quite rate and the .NET documentation is vague about it.
UpsertDocumentAsync failed with exception: System.Reflection.CustomAttributeFormatException: 'DefaultValueHandling' property specified was not found. ---> System.Reflection.CustomAttributeFormatException: 'DefaultValueHandling' property specified was not found.
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
--- End of inner exception stack trace ---
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimePropertyInfo property, RuntimeType caType)
at System.Reflection.RuntimePropertyInfo.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.Attribute.InternalGetCustomAttributes(PropertyInfo element, Type type, Boolean inherit)
at System.Attribute.GetCustomAttributes(MemberInfo element, Type type, Boolean inherit)
at Newtonsoft.Json.Utilities.ReflectionUtils.GetAttributes(Object attributeProvider, Type attributeType, Boolean inherit)
at Newtonsoft.Json.Utilities.ReflectionUtils.GetAttributes[T](Object attributeProvider, Boolean inherit)
at Newtonsoft.Json.Utilities.ReflectionUtils.GetAttribute[T](Object attributeProvider, Boolean inherit)
at Newtonsoft.Json.Serialization.JsonTypeReflector.GetAttribute[T](MemberInfo memberInfo)
at Newtonsoft.Json.Serialization.JsonTypeReflector.GetAttribute[T](Object provider)
at Newtonsoft.Json.Serialization.DefaultContractResolver.GetSerializableMembers(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperties(Type type, MemberSerialization memberSerialization)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe(Type type)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType, JsonSerializer jsonSerializer)
at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType)
at Newtonsoft.Json.Linq.JToken.ToObject[T]()
at Microsoft.Azure.Documents.JsonSerializable.GetValue[T](String propertyName)
at Microsoft.Azure.Documents.DocumentCollection.get_PartitionKey()
at Microsoft.Azure.Documents.Client.DocumentClient.AddPartitionKeyInformationAsync(DocumentServiceRequest request, Document document, RequestOptions options)
at Microsoft.Azure.Documents.Client.DocumentClient.UpsertDocumentPrivateAsync(String documentCollectionLink, Object document, RequestOptions options, Boolean disableAutomaticIdGeneration, IDocumentClientRetryPolicy retryPolicyInstance, CancellationToken cancellationToken)
at Microsoft.Azure.Documents.BackoffRetryUtility`1.<>c__DisplayClass1_0.<<ExecuteAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync(Func`1 callbackMethod, Func`3 callShouldRetry, Func`1 inBackoffAlternateCallbackMethod, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync(Func`1 callbackMethod, Func`3 callShouldRetry, Func`1 inBackoffAlternateCallbackMethod, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteAsync(Func`1 callbackMethod, IRetryPolicy retryPolicy, CancellationToken cancellationToken, Action`1 preRetryCallback)
at Microsoft.Azure.Documents.Client.DocumentClient.UpsertDocumentInlineAsync(String documentsFeedOrDatabaseLink, Object document, RequestOptions options, Boolean disableAutomaticIdGeneration, CancellationToken cancellationToken)
at FastPathCommon.CosmosDb.CosmosDbClient.UpsertDocumentInCosmosDbAsync[T](ILogger logger, String dbName, String collectionName, T document, Boolean disableAutomaticIdGeneration, CancellationToken cancellationToken) in c:\git\SportsAnswer\private\FastPath\FastPathCommon\CosmosDb\CosmosDbClient.cs:line 124
We are also seeing the related exception below sometimes. This should really not happen, as StringEnumConverter IS of type JsonConverter and it's inside the JSON.NET dll (11.0..).
UpsertDocumentAsync failed with exception: System.InvalidCastException: Unable to cast object of type 'Newtonsoft.Json.Converters.StringEnumConverter' to type 'Newtonsoft.Json.JsonConverter'.
at Newtonsoft.Json.Serialization.JsonTypeReflector.GetJsonConverter(Object attributeProvider)
at Newtonsoft.Json.Serialization.DefaultContractResolver.SetPropertySettingsFromAttributes(JsonProperty property, Object attributeProvider, String name, Type declaringType, MemberSerialization memberSerialization, Boolean& allowNonPublicAccess)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperties(Type type, MemberSerialization memberSerialization)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe(Type type)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType, JsonSerializer jsonSerializer)
at Newtonsoft.Json.Linq.JToken.ToObject[T](JsonSerializer jsonSerializer)
at Microsoft.Azure.Documents.JsonSerializable.GetValue[T](String propertyName)
at Microsoft.Azure.Documents.DocumentCollection.get_PartitionKey()
at Microsoft.Azure.Documents.Client.DocumentClient.AddPartitionKeyInformationAsync(DocumentServiceRequest request, Document document, RequestOptions options)
at Microsoft.Azure.Documents.Client.DocumentClient.UpsertDocumentPrivateAsync(String documentCollectionLink, Object document, RequestOptions options, Boolean disableAutomaticIdGeneration, IDocumentClientRetryPolicy retryPolicyInstance, CancellationToken cancellationToken)
at Microsoft.Azure.Documents.BackoffRetryUtility`1.<>c__DisplayClass1_0.<<ExecuteAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync(Func`1 callbackMethod, Func`3 callShouldRetry, Func`1 inBackoffAlternateCallbackMethod, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync(Func`1 callbackMethod, Func`3 callShouldRetry, Func`1 inBackoffAlternateCallbackMethod, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteAsync(Func`1 callbackMethod, IRetryPolicy retryPolicy, CancellationToken cancellationToken, Action`1 preRetryCallback)
at Microsoft.Azure.Documents.Client.DocumentClient.UpsertDocumentInlineAsync(String documentsFeedOrDatabaseLink, Object document, RequestOptions options, Boolean disableAutomaticIdGeneration, CancellationToken cancellationToken)
at FastPathCommon.CosmosDb.CosmosDbClient.UpsertDocumentInCosmosDbAsync[T](ILogger logger, String dbName, String collectionName, T document, Boolean disableAutomaticIdGeneration, CancellationToken cancellationToken) in c:\git\SportsAnswer\private\FastPath\FastPathCommon\CosmosDb\CosmosDbClient.cs:line 143
We are also seeing this, also related to JSON.NET serialization:
Method 'get_SerializationSettings' in type 'Microsoft.Azure.EventGrid.EventGridClient' from assembly 'Microsoft.Azure.EventGrid, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
Issue with same error: https://github.com/Azure/app-service-announcements-discussions/issues/45
It turns out that downgrading from Azure Functions runtime v2.0.12408 to v2.0.12382 fixes all of the above problems!
Here is the timeline:
- On Friday we redeployed our Azure Functions (we are on the App Service Plan with 3 machines).
- When we deployed it seems the runtime version got upgraded to v2.0.12408.
- You can clearly see the switchover in the Application insights logs, because the new runtime emits a different style of operation id when logging - it's a longer hash than before.
- As soon as we saw these new types of operation ids in the log, the troubles above started. In all of the problems above it seems somehow our code is referencing a version of JSON.NET that has some of the same classes, but different fields / functionality? Very weird.
- We worked non stop this until Saturday after noon, with some assistance from Azure support.
- Deploying our code to a separate test bed (also upgraded to v2.0.12408) did not alleviate the problem, the code was still emitting the same unusual errors on this separate app service as well.
- All the problems went away when we downgraded to v2.0.12382 by setting the FUNCTIONS_EXTENSION_VERSION setting in the portal.
Reference:
- https://github.com/Azure/app-service-announcements-discussions/issues/89
- https://github.com/Azure/app-service-announcements/issues/166
- Azure support ticket: 119042025000057
- @brettsam
We are seeing the same issues on our production/test/dev environment using Azure functions v2 happening since 19th of April. Before that time this error never happened!
Error: System.Reflection.CustomAttributeFormatException: 'DefaultValueHandling' property specified was not found. ---> System.Reflection.CustomAttributeFormatException: 'DefaultValueHandling' property specified was not found.
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
--- End of inner exception stack trace ---
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimePropertyInfo property, RuntimeType caType)
at System.Reflection.RuntimePropertyInfo.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.Attribute.InternalGetCustomAttributes(PropertyInfo element, Type type, Boolean inherit)
at System.Attribute.GetCustomAttributes(MemberInfo element, Type type, Boolean inherit)
at Newtonsoft.Json.Utilities.ReflectionUtils.GetAttributes(Object attributeProvider, Type attributeType, Boolean inherit)
at Newtonsoft.Json.Utilities.ReflectionUtils.GetAttributes[T](Object attributeProvider, Boolean inherit)
at Newtonsoft.Json.Utilities.ReflectionUtils.GetAttribute[T](Object attributeProvider, Boolean inherit)
at Newtonsoft.Json.Serialization.JsonTypeReflector.GetAttribute[T](MemberInfo memberInfo)
at Newtonsoft.Json.Serialization.JsonTypeReflector.GetAttribute[T](Object provider)
at Newtonsoft.Json.Serialization.DefaultContractResolver.SetPropertySettingsFromAttributes(JsonProperty property, Object attributeProvider, String name, Type declaringType, MemberSerialization memberSerialization, Boolean& allowNonPublicAccess)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperties(Type type, MemberSerialization memberSerialization)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe(Type type)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
operation_Id | 29dc293bff0ba04f80cef37c0cccd37f
After restarting the function app it seems to be working for a while, but comes back again after a while.
At the same time we see also the same exceptions a @zmarty commented:
System.InvalidCastException: Unable to cast object of type 'Newtonsoft.Json.Converters.StringEnumConverter' to type 'Newtonsoft.Json.JsonConverter'.
at Newtonsoft.Json.Serialization.JsonTypeReflector.GetJsonConverter(Object attributeProvider)
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContractConverter(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.InitializeContract(JsonContract contract)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreatePrimitiveContract(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)
at Newtonsoft.Json.JsonConvert.SerializeObject(Object value)
operation_Id | 1e9bdf9894a2be4fa9b99f01ebb74798
@lukasvosyka / @zmarty -- can you share what your project files look like? I want to see what packages you're referencing.
/cc @fabiocav -- I wonder if this commit could have broken assembly loading in some scenarios? https://github.com/Azure/azure-functions-host/commit/7cfbc1d30dccd08a5e3769df3b340252eec229a9.
Hi @brettsam
Sure: We have a function app deployable project and another project that is being referenced:
deployed project nuget packages:
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.EventHubs" Version="3.0.1" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.ServiceBus" Version="3.0.1" />
<PackageReference Include="Microsoft.Azure.WebJobs.Logging.ApplicationInsights" Version="3.0.4" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.24" />
<PackageReference Include="Willezone.Azure.WebJobs.Extensions.DependencyInjection" Version="1.0.1" />
referenced project nuget packages:
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="2.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.1.1" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="5.3.0" />
<PackageReference Include="morelinq" Version="3.0.0" />
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
<PackageReference Include="Sendgrid" Version="9.10.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="5.3.0" />
Additionally, the referenced project again, references nugets from our internal feed. Do you need a list of those too and what these packages depend on?
Best, Lukas
Do any of your packages reference Newtonsoft.Json? I'm wondering what the final resolved version of that package ends up being.
Yes, Newtonsoft.Json >= 9.0.1 is being referenced.
I connected to the affected functions app and downloaded the installed Newtonsoft.Json DLL, as well as the Newtonsoft.Json.Bson DLL.
This is the result: Newtonsoft.Json version 11.0.2.21924 Newtonsoft.Json.Bson version 1.0.1.20722
What would you suggest @brettsam ? Should we log the assembly versions somehow that are loaded when the app spins up?
@lukasvosyka - You said: "After restarting the function app it seems to be working for a while, but comes back again after a while." - In our case it's evern weirder. I have shown to Azure Support cases where the same function running on the same cloud instance (machine) fail in one run and succeeds in the other run. And both runs happen within milliseconds of each other. @brettsam we use App Service Plan, could it be that somehow the same Azure Function runs in different app domains on the same machine?
@brettsam - Yep, I shared our source code link over e-mail
@brettsam - We use Newtonsoft.Json 11.0.2
@brettsam I logged the JSON version and redeployed to our test bed using the latest runtime. I then looked at the logs of an operation which failed with the above exceptions.
Code:
var jsonAssembly = typeof(JToken).Assembly;
var fileVersionInfo = FileVersionInfo.GetVersionInfo(jsonAssembly.Location);
var jsonAssemblyVersion = fileVersionInfo.FileVersion;
logger.LogInformation($"JSON assembly version: {jsonAssemblyVersion}");
Output:
JSON assembly version: 11.0.2.21924
One aspect that is super frustrating is that the problem is intermittent. I sometimes trigger 100 function runs and maybe 1-2 fail. Maybe related to loading in a new app domain?
Came across this issue as well. Any news?
@zmarty is helping us internally try to reproduce this. We'll report back here.
@zmarty @brettsam The only common thing I see is that we are using a NoSql DB 🤔 While @zmarty is using CosmosDB we are using MongoDB.
Btw. a list of loaded assembly versions by our affected app is:
System.Private.CoreLib.dll 4.06.27521.2 func.dll 2.06.666.0 System.Runtime.dll 4.06.27521.1 Autofac.dll 4.06.2.0 System.Collections.dll 4.06.27521.1 System.Runtime.Extensions.dll 4.06.27521.1 System.IO.Abstractions.dll 2.01.0.227 netstandard.dll 4.06.27521.1 System.Security.AccessControl.dll 4.06.27521.1 System.IO.FileSystem.dll 4.06.27521.1 Newtonsoft.Json.dll 11.00.2.21924 System.Runtime.InteropServices.dll 4.06.27521.1 System.Reflection.dll 4.06.27521.1 System.Threading.dll 4.06.27521.1 System.ComponentModel.dll 4.06.27521.1 System.Linq.dll 4.06.27521.1 System.Globalization.dll 4.06.27521.1 System.Collections.Concurrent.dll 4.06.27521.1 System.Threading.Tasks.dll 4.06.27521.1 Colors.Net.dll 1.01.0.0 System.Console.dll 4.06.27521.1 Microsoft.Azure.WebJobs.Script.dll 2.00.12408.0 Microsoft.Extensions.Configuration.Abstractions.dll 2.02.0.18315 Microsoft.Extensions.Logging.Abstractions.dll 2.02.0.18315 Microsoft.Extensions.Logging.Console.dll 2.02.0.18315 Microsoft.Extensions.Logging.dll 2.02.0.18315 Microsoft.WindowsAzure.Storage.dll 9.03.1.0 System.Net.Http.dll 4.06.27521.1 Microsoft.AspNetCore.Authentication.dll 2.02.0.18316 Microsoft.AspNetCore.Authentication.Abstractions.dll 2.02.0.18316 Microsoft.AspNetCore.Http.Abstractions.dll 2.02.0.18316 System.Private.Uri.dll 4.06.27521.1 System.Net.Primitives.dll 4.06.27521.1 Microsoft.Azure.WebJobs.Script.WebHost.dll 2.00.12408.0 System.Linq.Expressions.dll 4.06.27521.1 System.Security.Cryptography.X509Certificates.dll 4.06.27521.1 System.Security.Cryptography.Primitives.dll 4.06.27521.1 DurableTask.AzureStorage.Internal.dll 1.04.0.0 DurableTask.Core.Internal.dll 2.00.11.0 System.Runtime.Serialization.Xml.dll 4.06.27521.1 System.Private.DataContractSerialization.dll 4.06.27521.1 Microsoft.AspNetCore.Hosting.Abstractions.dll 2.02.0.18316 Microsoft.Extensions.DependencyInjection.Abstractions.dll 2.02.0.18315 KubeClient.dll 2.01.5.0 AccentedCommandLineParser.dll 1.00.0.0 Anonymously Hosted DynamicMethods Assembly System.Reflection.Extensions.dll 4.06.27521.1 System.Runtime.Serialization.Formatters.dll 4.06.27521.1 System.Diagnostics.TraceSource.dll 4.06.27521.1 System.ComponentModel.TypeConverter.dll 4.06.27521.1 System.Runtime.Numerics.dll 4.06.27521.1 System.Collections.Specialized.dll 4.06.27521.1 System.Drawing.Primitives.dll 4.06.27521.1 System.ObjectModel.dll 4.06.27521.1 System.Runtime.Serialization.Primitives.dll 4.06.27521.1 System.Data.Common.dll 4.06.27521.1 System.Xml.ReaderWriter.dll 4.06.27521.1 System.Private.Xml.dll 4.06.27521.1 System.ComponentModel.Primitives.dll 4.06.27521.1 System.Diagnostics.Debug.dll 4.06.27521.1 Microsoft.Azure.WebJobs.Host.dll 3.00.7.0 Microsoft.Extensions.Options.dll 2.02.0.18315 Microsoft.Azure.WebJobs.Extensions.Http.dll 3.00.2.0 Microsoft.AspNetCore.Hosting.dll 2.02.0.18316 Microsoft.Extensions.Hosting.Abstractions.dll 2.02.0.18316 System.Runtime.InteropServices.RuntimeInformation.dll 4.06.27521.1 System.Diagnostics.Process.dll 4.06.27521.1 System.Memory.dll 4.06.27521.1 System.Net.Sockets.dll 4.06.27521.1 System.Diagnostics.Tracing.dll 4.06.27521.1 System.Threading.Overlapped.dll 4.06.27521.1 System.Net.NameResolution.dll 4.06.27521.1 Microsoft.AspNetCore.dll 2.02.0.18316 Microsoft.AspNetCore.Server.Kestrel.Core.dll 2.02.0.18316 Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.dll 2.02.0.18316 Microsoft.AspNetCore.Server.Kestrel.dll 2.02.0.18316 Microsoft.AspNetCore.Server.IIS.dll 2.02.1.18346 Microsoft.AspNetCore.Server.IISIntegration.dll 2.02.1.18346 Microsoft.Extensions.DependencyInjection.dll 2.02.0.18315 Microsoft.Extensions.Configuration.dll 2.02.0.18315 Microsoft.Extensions.Configuration.CommandLine.dll 2.02.0.18315 Microsoft.Extensions.FileProviders.Abstractions.dll 2.02.0.18315 Microsoft.Extensions.Configuration.EnvironmentVariables.dll 2.02.0.18315 Microsoft.Extensions.Primitives.dll 2.02.0.18315 Microsoft.AspNetCore.Http.Features.dll 2.02.0.18316 System.Diagnostics.DiagnosticSource.dll 4.06.27521.1 Microsoft.Extensions.Configuration.FileExtensions.dll 2.02.0.18315 Microsoft.AspNetCore.Http.dll 2.02.0.18316 Microsoft.Extensions.ObjectPool.dll 2.02.0.18315 Microsoft.Extensions.FileProviders.Physical.dll 2.02.0.18315 Microsoft.Extensions.Configuration.Json.dll 2.02.0.18315 Microsoft.Extensions.Configuration.UserSecrets.dll 2.02.0.18315 System.IO.FileSystem.Watcher.dll 4.06.27521.1 Microsoft.Extensions.FileSystemGlobbing.dll 2.02.0.18315 System.Threading.Timer.dll 4.06.27521.1 Microsoft.IntelliTrace.TelemetryObserver.Common.dll 15.00.27617.1 Microsoft.IntelliTrace.TelemetryObserver.CoreClr.dll 15.00.27617.1 Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll 2.02.1.18346 Microsoft.AspNetCore.Hosting.Server.Abstractions.dll 2.02.0.18316 Microsoft.Extensions.Logging.Configuration.dll 2.02.0.18315 Microsoft.Extensions.Logging.Debug.dll 2.02.0.18315 Microsoft.Extensions.Logging.EventSource.dll 2.02.0.18315 Microsoft.Extensions.Options.ConfigurationExtensions.dll 2.02.0.18315 Microsoft.AspNetCore.HostFiltering.dll 2.02.0.18316 Microsoft.AspNetCore.Mvc.dll 2.02.0.0 Microsoft.AspNetCore.Mvc.Core.dll 2.02.0.0 Microsoft.AspNetCore.Mvc.ViewFeatures.dll 2.02.0.0 Microsoft.AspNetCore.Mvc.Abstractions.dll 2.02.0.0 Microsoft.AspNetCore.Cors.dll 2.02.0.18316 Microsoft.AspNetCore.Authentication.Core.dll 2.02.0.18316 Microsoft.AspNetCore.DataProtection.dll 2.02.0.18316 Microsoft.Extensions.WebEncoders.dll 2.02.0.18316 System.Security.Claims.dll 4.06.27521.1 Microsoft.AspNetCore.Cryptography.Internal.dll 2.02.0.18316 Microsoft.AspNetCore.DataProtection.Abstractions.dll 2.02.0.18316 System.Text.Encodings.Web.dll 4.06.26515.6 Microsoft.AspNetCore.Authentication.JwtBearer.dll 2.02.0.18316 Microsoft.AspNetCore.Authorization.dll 2.02.0.18316 Microsoft.AspNetCore.Mvc.ApiExplorer.dll 2.02.0.0 Microsoft.AspNetCore.Mvc.Razor.dll 2.02.0.0 Microsoft.AspNetCore.Razor.dll 2.02.0.18316 Microsoft.AspNetCore.Mvc.RazorPages.dll 2.02.0.0 Microsoft.AspNetCore.Mvc.TagHelpers.dll 2.02.0.0 Microsoft.AspNetCore.Mvc.DataAnnotations.dll 2.02.0.0 Microsoft.AspNetCore.Mvc.Formatters.Json.dll 2.02.0.0 Microsoft.AspNetCore.Mvc.Cors.dll 2.02.0.0 Microsoft.AspNetCore.Routing.dll 2.02.0.18316 Microsoft.Extensions.DependencyModel.dll 2.01.0.0 System.AppContext.dll 4.06.27521.1 System.IO.FileSystem.Primitives.dll 4.06.27521.1 System.IO.dll 4.06.27521.1 Microsoft.AspNetCore.Routing.Abstractions.dll 2.02.0.18316 System.Buffers.dll 4.06.27521.1 Microsoft.AspNetCore.Authorization.Policy.dll 2.02.0.18316 Microsoft.AspNetCore.Antiforgery.dll 2.02.0.18316 Microsoft.CodeAnalysis.Razor.dll 2.02.0.18316 Microsoft.AspNetCore.Razor.Language.dll 2.02.0.18316 Microsoft.CodeAnalysis.dll 2.08.2.62916 Microsoft.AspNetCore.Mvc.Razor.Extensions.dll 2.02.0.18316 Microsoft.Extensions.Caching.Abstractions.dll 2.02.0.18315 Microsoft.Extensions.Caching.Memory.dll 2.02.0.18315 Microsoft.AspNetCore.Mvc.Formatters.Xml.dll 2.02.0.0 Microsoft.Azure.WebJobs.Script.Grpc.dll 2.00.12408.0 Grpc.Core.dll 1.18.0.0 System.Threading.Tasks.Dataflow.dll 4.06.27521.1 System.IO.Pipelines.dll 4.06.26919.2 Microsoft.AspNetCore.Connections.Abstractions.dll 2.02.0.18316 Microsoft.Win32.Registry.dll 4.06.27521.1 System.Xml.XDocument.dll 4.06.27521.1 System.Private.Xml.Linq.dll 4.06.27521.1 System.Resources.ResourceManager.dll 4.06.27521.1 System.Threading.Thread.dll 4.06.27521.1 System.Security.Cryptography.Algorithms.dll 4.06.27521.1 System.Text.Encoding.Extensions.dll 4.06.27521.1 System.Text.RegularExpressions.dll 4.06.27521.1 System.Reflection.Emit.ILGeneration.dll 4.06.27521.1 System.Reflection.Emit.Lightweight.dll 4.06.27521.1 System.Reflection.Primitives.dll 4.06.27521.1 Microsoft.Extensions.Localization.Abstractions.dll 2.02.0.18316 Microsoft.Net.Http.Headers.dll 2.02.0.18316 Microsoft.AspNetCore.JsonPatch.dll 2.02.0.18316 Microsoft.Extensions.FileProviders.Composite.dll 2.02.0.18315 System.Collections.Immutable.dll 4.06.27521.1 System.Security.Principal.dll 4.06.27521.1 Microsoft.ApplicationInsights.AspNetCore.dll 2.06.1.0 Microsoft.ApplicationInsights.dll 2.09.1.26108 System.Net.Security.dll 4.06.27521.1 System.Diagnostics.Tools.dll 4.06.27521.1 Microsoft.Extensions.DiagnosticAdapter.dll 2.02.0.18315 Microsoft.AI.DependencyCollector.dll 2.09.1.26132 Microsoft.Extensions.Configuration.Binder.dll 2.02.0.18315 System.Reactive.Linq.dll 3.01.1.0 System.Reactive.Interfaces.dll 3.01.1.0 System.Reactive.Core.dll 3.01.1.0 System.Runtime.Handles.dll 4.06.27521.1 System.Threading.ThreadPool.dll 4.06.27521.1 Google.Protobuf.dll 3.06.1.0 System.Reactive.PlatformServices.dll 3.01.1.0 System.Runtime.CompilerServices.Unsafe.dll Microsoft.Win32.Primitives.dll 4.06.27521.1 Microsoft.Extensions.Hosting.dll 2.02.0.18316 Microsoft.Azure.WebJobs.Logging.ApplicationInsights.dll 3.00.7.0 Microsoft.Azure.WebJobs.dll 3.00.7.0 Microsoft.Azure.WebJobs.Extensions.dll 3.00.2.0 System.Net.Http.Formatting.dll 5.02.60510.0 Microsoft.AspNetCore.Mvc.WebApiCompatShim.dll 2.02.0.0 NuGet.Versioning.dll 4.07.0.5148 System.Runtime.Loader.dll 4.06.27521.1 Microsoft.Azure.WebJobs.EventHubs.dll 3.00.1.0 Microsoft.Azure.WebJobs.ServiceBus.dll 3.00.1.0 Willezone.Azure.WebJobs.Extensions.DependencyInjection.dll 1.00.1.0 Microsoft.Azure.WebJobs.Host.Storage.dll 3.00.7.0 Microsoft.IdentityModel.Tokens.dll 5.03.0.51005 MongoDB.Bson.dll 2.07.2.0 System.Dynamic.Runtime.dll 4.06.27521.1 System.Collections.NonGeneric.dll 4.06.27521.1 Microsoft.IdentityModel.Logging.dll 5.03.0.51005 DynamicExpresso.Core.dll 2.01.0.0 Microsoft.Azure.WebJobs.Logging.dll 3.00.7.0 Microsoft.Azure.ServiceBus.dll 3.04.0.0 Microsoft.Azure.EventHubs.Processor.dll 2.01.0.0 Microsoft.Azure.EventHubs.dll 2.01.0.0 Microsoft.CodeAnalysis.Scripting.dll 2.08.2.62916 NuGet.ProjectModel.dll 4.07.0.5148 NuGet.LibraryModel.dll 4.07.0.5148 NCrontab.Signed.dll 3.02.20120.652 System.Reflection.Emit.dll 4.06.27521.1 ScriptHost System.ComponentModel.Annotations.dll 4.06.27521.1 Microsoft.Azure.Amqp.dll 2.02.0.0 System.Text.Encoding.dll 4.06.27521.1 mscorlib.dll 4.06.27521.1 System.Net.Requests.dll 4.06.27521.1 System.Security.Cryptography.Encoding.dll 4.06.27521.1 System.Security.Principal.Windows.dll 4.06.27521.1 Microsoft.CSharp.dll 4.06.27521.1 MongoDB.Driver.dll 2.07.2.0 MongoDB.Driver.Core.dll 2.07.2.0 System.Diagnostics.StackTrace.dll 4.06.27521.1 System.Reflection.Metadata.dll 4.06.27521.1 System.IO.MemoryMappedFiles.dll 4.06.27521.1 System.IO.Compression.dll 4.06.27521.1 System.Transactions.Local.dll 4.06.27521.1
The commonality is the usage of JSON.NET. All 3 exceptions I see are related to it. It's like the JSON.NET loaded on the server is an incorrect stub.
The commonality is the usage of JSON.NET. All 3 exceptions I see are related to it. It's like the JSON.NET loaded on the server is an incorrect stub.
Yes, you are right! I meant beside that very commonality 🤣 I tried to figure another aspect that we shared. My colleague told me that it is locally also reproducable after updating his local functions hosting runtime.
@lukasvosyka -- do you have a repro app that you can share with us? The more we have, the easier it'll be to figure this out...