Skip to content

Systeem.Net.Sockets.SocketException to ApplicationInsights  #2750

Open

Description

What version of .NET does your existing project use?

.NET 6

What version of .NET are you attempting to target?

.NET 8

Description

After Migration to .Net 8 azure function app started giving System.Net.Sockets.SocketException to ApplicationInsights
also it says "The I/O operation has been aborted because of either a thread exit or an application request" error in ApplicationInsights. Please find below settings in host and global json files as reference

Project configuration and dependencies

FunctionApp1.csroj

net8.0 v4 Exe enabled PreserveNewest PreserveNewest Never

Also please check below host.json
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true
}
}
}
}

Global.json
{
"sdk": {
"version": "8.0.203",
"rollForward": "latestFeature"
}
}

Link to a repository that reproduces the issue

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions