Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 2nd, 2006, 03:56 AM
Registered User
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTTPListener Exception and 404 Not Found error

I will be very very thankfull if someone can help me in handling exceptions related to connections etc in HTTPListener class.

I am making a Proxy server that listens to the requests from the browser through port 8080 by using the HTTPListener class and then forwards those requests through HTTPWebRequest and HTTPWebResponse Classes. After getting the response in HTTPWebResponse Object, the programs tries to write the response back to the browser using the HTTPListenerResponse object.

1. I often get the error of 404 Not Found when i call the GetResponse method of HTTPWebRequest object.
2. I get exception of "An operation was attempted on a nonexistent network connection" when i try to write back the response to the browser. I dont know whats wrong with the connection managment of it. i tried with keeping the Keep Alive property TRUE and increase the limit but still giving the same errors.

Thanks in advance.

Similar Threads
Thread Thread Starter Forum Replies Last Post
404 File not found error jayman Dreamweaver (all versions) 3 March 13th, 2006 12:59 PM
Resource not found - HTTP -404 javz_1 Apache Tomcat 1 January 16th, 2006 05:35 AM
ERROR: HTTP 404 File not Found or unable to stat f rpk BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 January 4th, 2006 10:20 PM
404 - File not found error geeta Classic ASP Professional 1 October 23rd, 2004 09:25 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.