Advertisement

06.05.2008 at 11:19PM PDT, ID: 23462808
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Asked by rengsons in Network Operations, Microsoft Visual C#.Net, Visual Studio

Tags: , , ,

Hai,
i am doing one project in C# windows application.This project is used to interfacing with another one data.I can transfer  data to that device by using TCP/IP with port 25.But When i transfer bulk of data from PC to device,follwing error occured.
"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ".
                      For examble I need to send 10 number of data one by one.In that i can send 5 number of data successfully(can receive the ack also).But when i send 6th data. the above error may occur.
After some seconds i can send the remaining data(Some times i have to restart the device).
I hope you can understand mine situation. My code is given as below

                        IPAddress IPAdd = IPAddress.Parse("192.168.16.81");
                        IPEndPoint hostep = new IPEndPoint(IPAdd, 25);
                        Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                        sock.Connect(hostep);
                        sock.Send(Encoding.ASCII.GetBytes(userPacket));
                        sock.ReceiveBufferSize = 1024;
                        byte[] data = new byte[1024];
                        sock.ReceiveTimeout = 3000;
                        sock.Receive(data);
                        string recevedData = "";
                        recevedData = System.Text.Encoding.ASCII.GetString(data);
                     
Please guide me to solve this problem.
                       Start Free Trial
 
 
[+][-]06.05.2008 at 11:34PM PDT, ID: 21726675

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.06.2008 at 01:37AM PDT, ID: 21727207

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Network Operations, Microsoft Visual C#.Net, Visual Studio
Tags: Microsoft, Visual Studio 2005, C#, interfacing
Sign Up Now!
Solution Provided By: Thejaka
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628