I normally sign in to my hotmail (@msn.com) via Passport- does that have anything to do with it? I notice outlook express automatically runs msn messenger (for passport work?) However I can't even get outlook express to access my account.
Excellent article. Good structured code. I am converting it to a vb webservice so I can serve my hotmail account from my website. Certain kiosks and other places use websense type technology to filter out hotmail url's, preventing me sometimes from checking my mail while on the road. If I proxy it from my website the websense technology wont come into effect since the actuall http connection will be made from my webserver.
Some notes for those not able to connect. I also could not connect at first. Try a few times, the server does not always respond the first time. Also, use your username only, don't add @hotmail.com, that prevented me from connecting also. As a last resort, try navigating to the url directly, and when prompted with a login dialog box, enter your credentials. You should connect that way. This code does work and it ROCKS!
I was just browsing and notice this code....it's also available at www.csharp-corner.com. That's where i got mine and tried it. But it also gave me an access denied.
I can confirm to Patrick Robinson that I do have the same problem, and i can connect to remote server using the .NET classes. I've never tested with MSXML2 though. I mainly used sockets to connect to servers via FTP, HTTP, IRC and Game servers.
I didn't bother much about it since i only wanted to see how MSXML worked. But if i ever do fiddle with it and make it work, i'll repost here to let you guys know.