Network Class Library (System.Net) announcement
-
Link
This forum has been retired. It is locked, but is still available for review in the Archived Forums folder. Any future posts on this topic should be put in the Windows Communication Foundation, Serialization, and Networking forum.
-
Link
Is this the right forum?
This forum is monitored on a regular basis by the Network Class Library (NCL) team. It is dedicated to questions about the System.Net namespace and the System.Uri class. If your question falls into this category, then you have come to the right place.To ensure a timely response, we can only actively monitor questions that fall within the category above. Non-related questions will be locked or moved to the most appropriate forum.
General Forum Tips
Here are a few suggestions (in this order of relevance) that will help you to get the best answer to your question as quickly as possible:
-
Search for your question on the forums or in Visual Studio's help system first
-- it's likely someone may have already answered your question, and you
won't have to waste time waiting for it to be answered again
- Post in the correct forum
(see below) -- since the experts in various subject matters tend to
stick to the set of forums that focus on those topics, a question about
the C# yield keyword posted in the Common Language Runtime forum will
likely take a lot longer to be answered than the same question in the
C# Language forum.
- Give details about your problem
-- rather than "When I call Process.Start I get an exception, please
help", provide the exception type, message, and call stack. Many times
it helps if you attach a snippet of the network trace/sniff of the
error that shows the error. For getting network sniffs use Network
Monitor and for network traces use the built in System.Net tracing
according to this blog.
If possible, provide a succinct code snippet that demonstrates the problem. This lets us reproduce the problem on our end and allows us to come up with an answer where just a general question may not have had enough details. Having this information means we can answer your question more quickly, without having to ask you for these details and wait for your response. If you have a big code sample please trim it down to the relevant parts that will help us understand the problem better. - Try to pinpoint the location of your error –
This will help us get to the root of the issue quickly. Saying
something like “My application cannot read from server” is less likely
to find a quick solution as compared to “My application gets a 505 not
found even though file is present since the trace shows that
FtpWebRequest does not handle a 505 error for an xyz command”
- Make sure your title summarizes the specific problem you have
-- since we try to answer the maximum number of questions we can with
our time, we often skim through question subjects to quickly find the
ones that we know the answers to. A question with a title of "Urgent!
Help needed!" is not as likely to get answered as a question with a
title of "How to define a sealed class using CodeDOM". A more
specific, detailed title is far more likely to get a response than
a general one.
- Once
you've received a correct answer to your question, either from a
Microsoft employee, an MVP, or the community in general, please mark
the post as answered.
You can do this with the "Mark as correct answer" button that appears
on the entry containing your answer. This step is important, since it
lets the Visual Studio search engine know that there is an answer in
that thread for others who may also have your problem. It also lets
people scanning the forums know that they can find an answer to that
question by reading the thread.
- Report bugs through Microsoft Connect, instead of on the forums
-- this site allows us to see the bugs in our bug
tracking database and get them assigned to the correct person. It also
allows you to follow the problem through to its resolution, and is a
much better way for us to handle issues you find than a bug report
posted on the forums.
- Use the report button -- as moderators we try to keep spam and inflammatory comments out of the forums. However if you do catch something that we missed, don't hesitate to use the report button so that we can keep the forums on-topic and a friendly place to go for help with your .NET questions!
Related Forums
When trying to figure out which forum is right for your question, here are some good candidates:
Network Class Library (System.Net) - for managed networking issues like HTTP, SMTP, Uri, FTP, Sockets etc.
Windows Communication Foundation (WCF) - for managed networking issues relating to WCF and SOA
.NET Framework Networking - for managed networking issues not relating to System.Net or WCF.
Common Language Runtime - for questions related to the runtime engine itself
.NET Development General - a general catchall for questions related to the BCL libraries, questions regarding the design of your code, etc.
Visual C# Language - for questions about the C# programming language, not the CLR or managed libraries
Visual Basic Language - same as above, but for VB
Visual C++ Language - same as above, but for C++ (both native and C++/CLI)
Windows Forms General - for questions about creating applications using the System.Windows.Forms libraries
ASP.NET Forums - for questions about writing web applications using ASP.NET
Development Forums - list of forums
Of course there are dozens of other forums available if your question doesn't fit into one of those categories. You can ask here where you should post if you have not yet found the right place. -
Search for your question on the forums or in Visual Studio's help system first
-- it's likely someone may have already answered your question, and you
won't have to waste time waiting for it to be answered again
-
3 Votes
MemoryMappedFile.CreateOrOpen throws UnauthorizedAccessException (Access to the path is denied)
Hi, I am using Windows 7 machine. I have 2 processes. One (Process1) is run as a Windows service under the context of local system account. Other one (Process2) ...Proposed | 3 Replies | 19786 Views | Created by Shakir - Monday, March 21, 2011 11:46 AM | Last reply by dirty sexy death machine - Monday, December 24, 2012 8:58 AM -
0 Votes
http get request and xml response
Hello, My form sends an http get request, i need to get a response in string I'm actually getting a string, but in strange symbols, i guess because the ...Answered | 9 Replies | 15261 Views | Created by hollow82 - Monday, December 10, 2012 11:51 AM | Last reply by hollow82 - Saturday, December 22, 2012 3:44 PM -
1 Votes
Send and receive file using System.Net.Sockets.Socket in C#
Hi, I am trying to send a file from a tcp socket server to a client, I've found how to use the SendFile method to send from the server, but there is no additional method for ...Answered | 15 Replies | 44175 Views | Created by smetah - Monday, December 17, 2012 9:26 PM | Last reply by smetah - Thursday, December 20, 2012 6:44 PM -
0 Votes
HttpWebRequest.GetRequestStream() hangs / bug in System.Net stack ?
1054081937") + 0x7c bytes System.dll!System.Net.HttpWebRequest.SubmitRequest(System.Net.ServicePoint servicePoint) + 0xf9 bytes ...Answered | 10 Replies | 27934 Views | Created by Mathieu_D - Thursday, February 10, 2011 11:12 AM | Last reply by Ihor Bobak - Wednesday, December 19, 2012 1:10 PM -
0 Votes
How to check equality between different types of ip addresses?
I wish to compare equality between IPV4 and IPV6 format of ip address for e.g. how to compare ::1 and 127.0.0.1 ...Unanswered | 8 Replies | 8660 Views | Created by Kiran Saravade - Tuesday, December 11, 2012 6:03 AM | Last reply by cheong00 - Wednesday, December 19, 2012 7:27 AM -
0 Votes
Help me fix a type of variable in program send a recieve file.
Hi everybody, I have write a program send and recieve a large file , now it can transfer a file size 1.5G but when I choose large file about 2G it fail and ...Unanswered | 4 Replies | 6375 Views | Created by David Robbsan - Monday, December 17, 2012 8:43 AM | Last reply by Alex Skalozub - Wednesday, December 19, 2012 4:33 AM -
0 Votes
Is there a way simple method of doing Half Duplex Comms in the Serial Port Class?
Hi All, I have been asking about having to send data out of the Serial port twice to get a responce from a device, the serial port latching the data etc. I have found this is due to ...Unanswered | 19 Replies | 7686 Views | Created by GlennPatton - Friday, December 14, 2012 1:11 PM | Last reply by GlennPatton - Tuesday, December 18, 2012 4:15 PM -
0 Votes
how can i put code in LOAD_DATA.cs for send sms using c#
I am using the following code for for pay online and email sending; but how can i put code for sms ...Unanswered | 1 Replies | 7079 Views | Created by Rinku Baruah - Tuesday, December 18, 2012 8:38 AM | Last reply by Rinku Baruah - Tuesday, December 18, 2012 10:13 AM -
0 Votes
MailAddress seems to have a couple of bugs
BUG1: I want to use MailAddress to validate email addresses. It handles most illegal ascii characters correctly, but not the unquoted space character. Using MailAddress(string ...Unanswered | 10 Replies | 7353 Views | Created by triple_vee - Thursday, December 6, 2012 12:01 AM | Last reply by murtazagandhi - Monday, December 17, 2012 8:42 AM -
0 Votes
Issue in sending Email to some specific set of Mail address: c# .Net
In our requirement, we are working on an issue Issue : The e-mail is not getting delivered to some specific Email ...Unanswered | 4 Replies | 8930 Views | Created by Selva.123 - Monday, December 10, 2012 11:50 AM | Last reply by murtazagandhi - Monday, December 17, 2012 6:36 AM -
0 Votes
"URI address not recognized" UDP prefix
I'm trying to implement a torrent client so I need to be able to handle udp://* prefixed addresses. I've tried using WebClient and WebRequest to handle it but they both throw "URI address not ...Unanswered | 1 Replies | 7129 Views | Created by LightAlkmst - Sunday, December 16, 2012 5:30 PM | Last reply by Joel Engineer - Sunday, December 16, 2012 8:50 PM -
0 Votes
httpWebRequest.GetResponse(): The underlying connection was closed: The connection was closed unexpectedly.
I keep getting a System.Net.WebException thrown, precisely from req.GetResponse() and not GetResponseStream(), with this message: "The underlying connection was closed: The connection was closed ...Unanswered | 2 Replies | 21503 Views | Created by mmmt - Friday, December 14, 2012 3:49 AM | Last reply by mmmt - Friday, December 14, 2012 9:47 PM -
1 Votes
system.Net.Dns.GetHostAddresses hangs
foreach(string computerName in listComputerNames) { System.Net.IPAdress[] ipArray = System.Net.Dns.GetHostAddress(computerName); myIp = ...Answered | 4 Replies | 9082 Views | Created by CountryStyle - Tuesday, December 11, 2012 2:54 AM | Last reply by Bob Shen - Friday, December 14, 2012 2:46 AM -
0 Votes
Avoiding exception when a socket is closed
I have a basic server application with async-sockets for sending/receiving data over TCP. When a connection is closed, it often throws an exception in a socket-related function such as ...Answered | 3 Replies | 7723 Views | Created by martin_mine - Sunday, December 9, 2012 9:43 PM | Last reply by martin_mine - Thursday, December 13, 2012 2:53 PM -
0 Votes
How to write a udp windows service
Dear all, I am new to UDP socket programming. I need to write a windows service that listen UDP message and then use the ...Unanswered | 4 Replies | 12059 Views | Created by hi123456 - Wednesday, December 12, 2012 9:47 AM | Last reply by Brad Semrad - Thursday, December 13, 2012 2:51 PM -
0 Votes
POST XML data to PHP script
using System; using System.IO; using System.Net; using System.Text; namespace Examples.System.Net { public class ...Unanswered | 4 Replies | 7418 Views | Created by papacharlie1989 - Tuesday, December 11, 2012 1:29 AM | Last reply by papacharlie1989 - Wednesday, December 12, 2012 10:54 PM -
1 Votes
Socket problem: TcpClient.GetStream with ReceiveTimeout throws Exception and connected state become false
I use a Socket object to read data synchronously using GetStream(). I initialized the ReceiveTimeout to a value of ...Answered | 2 Replies | 28378 Views | Created by CIGNUM - Tuesday, August 24, 2010 4:05 PM | Last reply by zkomives - Wednesday, December 12, 2012 1:28 AM -
0 Votes
In Asp.net ,http work is get ,set and forget.
When we are sending a request to server , we know that the property of HTTP is get ,set and forget, so when again we are send a request to server within same application how the server identify that ...Unanswered | 5 Replies | 6710 Views | Created by SusantaKumar - Thursday, December 6, 2012 5:43 AM | Last reply by Joel Engineer - Friday, December 7, 2012 10:12 AM -
0 Votes
C#.NET console application -sending mail.. when i am trying to send mail, i am getting error "Failed Sending mail" , can some one help me, below is my code... Thanks
mM.From = new MailAddress(mFrom, "MCheck"); mM.To.Add(new ...Unanswered | 11 Replies | 8062 Views | Created by SusantaKumar - Tuesday, December 4, 2012 6:13 AM | Last reply by Joel Engineer - Friday, December 7, 2012 10:04 AM -
0 Votes
Clients are able to discover Servers without entering IP details
Here's a scenario i'm looking at; I have many clients and many servers, the clients are able to select which server to connect too. Servers will be going offline/online at ...Unanswered | 6 Replies | 5822 Views | Created by NathanT85 - Thursday, December 6, 2012 3:15 PM | Last reply by Joel Engineer - Thursday, December 6, 2012 4:45 PM - Items 1 to 20 of 1984 Next ›
Network Class Library (System.Net) announcement
-
Link
This forum has been retired. It is locked, but is still available for review in the Archived Forums folder. Any future posts on this topic should be put in the Windows Communication Foundation, Serialization, and Networking forum.
-
Link
Is this the right forum?
This forum is monitored on a regular basis by the Network Class Library (NCL) team. It is dedicated to questions about the System.Net namespace and the System.Uri class. If your question falls into this category, then you have come to the right place.To ensure a timely response, we can only actively monitor questions that fall within the category above. Non-related questions will be locked or moved to the most appropriate forum.
General Forum Tips
Here are a few suggestions (in this order of relevance) that will help you to get the best answer to your question as quickly as possible:
-
Search for your question on the forums or in Visual Studio's help system first
-- it's likely someone may have already answered your question, and you
won't have to waste time waiting for it to be answered again
- Post in the correct forum
(see below) -- since the experts in various subject matters tend to
stick to the set of forums that focus on those topics, a question about
the C# yield keyword posted in the Common Language Runtime forum will
likely take a lot longer to be answered than the same question in the
C# Language forum.
- Give details about your problem
-- rather than "When I call Process.Start I get an exception, please
help", provide the exception type, message, and call stack. Many times
it helps if you attach a snippet of the network trace/sniff of the
error that shows the error. For getting network sniffs use Network
Monitor and for network traces use the built in System.Net tracing
according to this blog.
If possible, provide a succinct code snippet that demonstrates the problem. This lets us reproduce the problem on our end and allows us to come up with an answer where just a general question may not have had enough details. Having this information means we can answer your question more quickly, without having to ask you for these details and wait for your response. If you have a big code sample please trim it down to the relevant parts that will help us understand the problem better. - Try to pinpoint the location of your error –
This will help us get to the root of the issue quickly. Saying
something like “My application cannot read from server” is less likely
to find a quick solution as compared to “My application gets a 505 not
found even though file is present since the trace shows that
FtpWebRequest does not handle a 505 error for an xyz command”
- Make sure your title summarizes the specific problem you have
-- since we try to answer the maximum number of questions we can with
our time, we often skim through question subjects to quickly find the
ones that we know the answers to. A question with a title of "Urgent!
Help needed!" is not as likely to get answered as a question with a
title of "How to define a sealed class using CodeDOM". A more
specific, detailed title is far more likely to get a response than
a general one.
- Once
you've received a correct answer to your question, either from a
Microsoft employee, an MVP, or the community in general, please mark
the post as answered.
You can do this with the "Mark as correct answer" button that appears
on the entry containing your answer. This step is important, since it
lets the Visual Studio search engine know that there is an answer in
that thread for others who may also have your problem. It also lets
people scanning the forums know that they can find an answer to that
question by reading the thread.
- Report bugs through Microsoft Connect, instead of on the forums
-- this site allows us to see the bugs in our bug
tracking database and get them assigned to the correct person. It also
allows you to follow the problem through to its resolution, and is a
much better way for us to handle issues you find than a bug report
posted on the forums.
- Use the report button -- as moderators we try to keep spam and inflammatory comments out of the forums. However if you do catch something that we missed, don't hesitate to use the report button so that we can keep the forums on-topic and a friendly place to go for help with your .NET questions!
Related Forums
When trying to figure out which forum is right for your question, here are some good candidates:
Network Class Library (System.Net) - for managed networking issues like HTTP, SMTP, Uri, FTP, Sockets etc.
Windows Communication Foundation (WCF) - for managed networking issues relating to WCF and SOA
.NET Framework Networking - for managed networking issues not relating to System.Net or WCF.
Common Language Runtime - for questions related to the runtime engine itself
.NET Development General - a general catchall for questions related to the BCL libraries, questions regarding the design of your code, etc.
Visual C# Language - for questions about the C# programming language, not the CLR or managed libraries
Visual Basic Language - same as above, but for VB
Visual C++ Language - same as above, but for C++ (both native and C++/CLI)
Windows Forms General - for questions about creating applications using the System.Windows.Forms libraries
ASP.NET Forums - for questions about writing web applications using ASP.NET
Development Forums - list of forums
Of course there are dozens of other forums available if your question doesn't fit into one of those categories. You can ask here where you should post if you have not yet found the right place. -
Search for your question on the forums or in Visual Studio's help system first
-- it's likely someone may have already answered your question, and you
won't have to waste time waiting for it to be answered again