Skip to content

.Net 6 API in failing at start up post this upgrade to VS2022 17.8. Getting error "Operation is not supported on this platform." #96507

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:Multiple people on my team are impacted (internal MSFT only)] [regression] [worked-in:17.7.7]
After upgrading to Visual Studio 2022 18.3, .Net 6.0 API stopped working and failing at startup with error 'Operation is not supported on this platform.'
Stack Trace:
at System.Text.Encodings.Web.OptimizedInboxTextEncoder.AllowedAsciiCodePoints.get_AsVector()
at System.Text.Encodings.Web.OptimizedInboxTextEncoder.GetIndexOfFirstCharToEncodeSsse3(Char* pData, UIntPtr lengthInChars)
at System.Text.Encodings.Web.OptimizedInboxTextEncoder.GetIndexOfFirstCharToEncode(ReadOnlySpan1 data) at System.Text.Encodings.Web.DefaultJavaScriptEncoder.FindFirstCharacterToEncode(Char* text, Int32 textLength) at System.Text.Json.JsonWriterHelper.NeedsEscaping(ReadOnlySpan1 value, JavaScriptEncoder encoder)
at System.Text.Json.Utf8JsonWriter.WritePropertyName(ReadOnlySpan1 propertyName) at System.Text.Json.Utf8JsonWriter.WritePropertyName(String propertyName) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions.Serialize(Utf8JsonWriter writer) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelEventSource.Configuration(KestrelServerOptions options) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelEventSource.AddServerOptions(KestrelServerOptions options) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<StartAsync>d__301.MoveNext()
at Microsoft.AspNetCore.Hosting.GenericWebHostService.d__37.MoveNext()
at Microsoft.Extensions.Hosting.Internal.Host.<b__15_1>d.MoveNext()
at Microsoft.Extensions.Hosting.Internal.Host.d__18`1.MoveNext()
at Microsoft.Extensions.Hosting.Internal.Host.g__LogAndRethrow|15_3(<>c__DisplayClass15_0& )
at Microsoft.Extensions.Hosting.Internal.Host.d__15.MoveNext()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.d__4.MoveNext()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.d__4.MoveNext()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
at BDO.Integration.API.Program.Main(String[] args) in C:\BDO\API\APT_API\BDO.APT.API\src\External.API\WebAPI\Program.cs:line 23


Original Comments

(no comments)


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions