Skip to content

[dotnet-sdk-10.0.100-alpha.1.25057.15] InternetTest crashes due to exception " The requested protocol has not been configured into the system, or no implementation for it exists". #111487

Closed as not planned
@Junjun-zhao

Description

@Junjun-zhao

Description

When onboarding the 3rd party application and running against with dotnet-sdk-10.0.100-alpha.1.25057.15, the app crashes with error: The requested protocol has not been configured into the system, or no implementation for it exists. After investigating, we found this issue starts from dotnet-sdk-9.0.100-preview.4.24267.66 build.

Application Name: InternetTest
OS: Windows 10 22H2
CPU: X64
.NET Build Number: dotnet-sdk-10.0.100-alpha.1.25057.15
App & Source Location checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2346272
Github Link: https://github.com/Leo-Corporation/InternetTest

Reproduction Steps

App Repro Steps:

  1. Launch "Desktop\InternetTest\App\InternetTest\InternetTest.exe”.
  2. Click “Skip” if a window displays.
  3. Click “WiFi Networks”.
  4. Click “Network adapters”.

Expected Result:
Networks show on screen.

Actual Result:
Pop up window with error:
The requested protocol has not been configured into the system, or no implementation for it exists.

Minimal Repro Steps (Demo attached:ConsoleDemo (4).zip):
Please refer to the Repro machine from Devdiv bug

  1. Create a default 8.0 console project.
  2. Copy the following code to Program.cs.
using System.Net.NetworkInformation;
NetworkInterface[] ns = NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface n in ns)
{
    int Mtu = n.GetIPProperties().GetIPv4Properties().Mtu;
}
  1. Build the project.
  2. Change the runtime.config file to let the app run against with dotnet-sdk-10.0.100-alpha.1.25057.15:
"frameworks": [
      {
        "name": "Microsoft.NETCore.App",
        "version": "10.0.0-alpha.1.25052.4"
      }
    ]
  1. Launch the app.

Expected behavior

All NetworkInterfaces passed.

Actual behavior

Actual Result:
Some NetworkInterfaces fail with error:

Ethernet 2 : Pass
Loopback Pseudo-Interface 1 : Pass
Ethernet 2-WFP Native MAC Layer LightWeight Filter-0000 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Ethernet 2-QoS Packet Scheduler-0000 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Ethernet 2-WFP 802.3 MAC Layer LightWeight Filter-0000 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 6-WFP Native MAC Layer LightWeight Filter-0000 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 6-QoS Packet Scheduler-0000 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 7-WFP Native MAC Layer LightWeight Filter-0000 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 7-QoS Packet Scheduler-0000 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 8-WFP Native MAC Layer LightWeight Filter-0000 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 8-QoS Packet Scheduler-0000 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Ethernet (Kernel Debugger) : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Ethernet : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 6 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 7 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 8 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 5 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Teredo Tunneling Pseudo-Interface : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Microsoft IP-HTTPS Platform Interface : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
6to4 Adapter : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 1 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 2 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 3 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Local Area Connection* 4 : Fail
System.Net.NetworkInformation.NetworkInformationException (10043): The requested protocol has not been configured into the system, or no implementation for it exists.
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()
   at Program.<Main>$(String[] args) in C:\Users\test01\source\repos\ConsoleDemo\ConsoleDemo\Program.cs:line 12
Total:24 Pass:2 Fail:22

Regression?

Yes

Verify Scenarios:
1). Windows 10 22H2 AMD64 + dotnet-sdk-8.0.404: Pass
2). Windows 10 22H2 AMD64 + dotnet-sdk-9.0.100-preview.3.24204.13: Pass
3). Windows 10 22H2 AMD64 + dotnet-sdk-9.0.100-preview.4.24267.66: Fail
4). Windows 10 22H2 AMD64 + dotnet-sdk-10.0.100-alpha.1.25057.15: Fail

Known Workarounds

No response

Configuration

Dotnet info:

.NET SDK:
 Version:           10.0.100-alpha.1.25057.15
 Commit:            39da6dde11
 Workload version:  10.0.100-manifests.a166a9cf
 MSBuild version:   17.14.0-preview-25056-07+8d395fd27

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19045
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\10.0.100-alpha.1.25057.15\

Host:
  Version:      10.0.0-alpha.1.25052.4
  Architecture: x64
  Commit:       efdd299533

.NET SDKs installed:
  10.0.100-alpha.1.25057.15 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 10.0.0-alpha.2.25056.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 10.0.0-alpha.1.25052.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 10.0.0-alpha.1.25056.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other information

Findings:
When debugging into the app source code, we found that, NetworkInterface.GetAllNetworkInterfaces() returns 2 Network Interfaces with dotnet-sdk-9.0.100-preview.3.24204.13 and before. Started from 9.0.100-preview.4.24267.66, it returns 11 Network Interfaces and some of them will throw "The requested protocol has not been configured into the system, or no implementation for it exists" exception when getting its GetIPv4Properties().Mtu property.
The NetworkInterface count that returned will be different on different machines. But the returned count on machines that installed 9.0.100-preview.4.24267.66 and later version is greater than the machines installed with previous version.
And We found following network interfaces come will cause the exception on our test machines:

Image

@dotnet-actwx-bot @dotnet/compat

Metadata

Metadata

Assignees

Labels

area-System.NetenhancementProduct code improvement that does NOT require public API changes/additions

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions