dotnet / dotnet/dotnet-api-docs

TcpChannel Class Example Has Errors

Open
#10,314 10 comments 0 reactions 0 assignees View on GitHub
area-System.Runtime Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### Type of issue

Code doesn't work

### Description

[Enter feedback here]
When I copy and paste the code example of a server(https://learn.microsoft.com/en-us/dotnet/api/system.runtime.remoting.channels.tcp.tcpchannel?view=netframework-4.8.1) into a console app in VS2022, it has a lot of errors. Even the "using System.Runtime.Remoting.Channels;" is an error.
[code example shows a server.zip](https://github.com/user-attachments/files/16740353/code.example.shows.a.server.zip)
Where do i find a working example or how to fix this one.
Need to add what IDE that the examples worked on to reduce problems

### Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.runtime.remoting.channels.tcp.tcpchannel?view=netframework-4.8.1

### Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Runtime.Remoting.Channels.Tcp/TcpChannel.xml

### Document Version Independent Id

be2b05de-e3ef-5732-416d-624b057189f9

### Article author

@dotnet-bot

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.