Click here to Skip to main content
15,891,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting "HRESULT: 0x800A9C54" error when clicking the start listening button. with following code:
C#
if (PortText.Text != "")
          {
              w1.LocalPort = Int32.Parse(PortText.Text); // in this line
              w1.Listen();
          }


I'am doing exactly this project http://www.go4expert.com/articles/winsock-c-sharp-t3312/ please help me with this issues.

Regards
Karthi.R

What I have tried:

this is my project http://www.go4expert.com/articles/winsock-c-sharp-t3312/
Posted
Updated 2-May-16 21:03pm

Then don't ask us: ask the people who wrote it.
Follow your link, and look at the bottom of the page: there is a forum there for messages to the author. Use it and ask them - they will have a much better idea why the code doesn't work than random people on a totally different site!
 
Share this answer
 
I don't know what you are trying to do, but I doubt that using WINSOCK is the easiest way to do what you want.
You should also notice that the article is from 2007, so the support of it might be lacking.

You are probably better off using System.Net.Sockets Namespace[^]

You can find some basic examples at MSDN. See Socket Code Examples[^]

That said. you should make sure that that you build your code for 'x86'. The default is 'Any CPU' so this could create a problem on a 64-bit system.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900