473,385 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Cannot cancel BeginGetResponse via Web client

dea
I’m using Visual Studio 2003 and am trying to modify an in-house http
component that is accessed by a web application and is used to screen-scrape
various internal web applications for placement in a portal. The component
was originally written using the HttpWebRequest.Timeout property, but that
does not work reliably if the web application being scraped returns a partial
response before continuing with some long processing.

So I researched BeginGetResponse and implemented a method in the component
that would use this asynchronous technique. My code is modeled after the
example at http://msdn2.microsoft.com/library/21k58ta7.aspx. This did not
seem to work, so I separated myself from the component and wrote a couple of
simpler applications to test BeginGetResponse and associated techniques.

Getting to the point, the problem is that my code works from a Windows
client, but not from a web client. The part that doesn’t work in the web
application is that the test web page I’m calling does not get cancelled like
it does when I use the windows client. The test page I call is a simple .NET
page that disables buffering and builds a response in a loop with sleeps
mixed in.

I can provide detailed code listings, if needed. But before I do that, does
this make any sense? Has anyone seen anything similar?

Thanks,
dea

Nov 19 '05 #1
0 1322

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jacob | last post by:
I'm writing a class that communicates with a server using the TcpClient class. Most of the methods I've written are intended to be used synchronously and will block until they are completed. But...
3
by: news.public.microsoft.com | last post by:
Hi everyone, I have a VB.NET web form with some field validators and Save and Cancel buttons. What I want to do is on the Cancel button On_Click event, Response.Redirect to another page. The...
1
by: moondaddy | last post by:
I have a datalist that makes use of the edit template. In this template I also have client side validation controls for required fields. My problem is that when I click on the cancel button it...
2
by: Jim Davis | last post by:
I have an app that makes an async web request using WebRequest.BeginGetResponse. On windows 2000 and Windows 2003 it works without needing a NetworkCredential object. On Windows XP (dev box for...
0
by: Susan | last post by:
I am trying to cancel an oracle stored procedure that can possibly run a long time. I set up the oracle command and, if the user selects to cancel the request or chooses another query to run, I...
2
by: tirath | last post by:
hi, I have a web site where user provide some search criteria and click on button "Search". I want to provide a "Cancel" button which user can click. In case search takes long, user clicks on...
3
by: Smithers | last post by:
In consideration of the brief sample code at the following link... http://msdn2.microsoft.com/en-us/library/system.componentmodel.canceleventargs.cancel.aspx .... when we set e.Cancel = true,...
6
by: =?Utf-8?B?V2hpc2tleVJvbWVv?= | last post by:
I read the 4 or 5 threads on this Subject and it seems my javasript should work but it doesn't. In the designer, the onClientClick is set to: CheckForSave(this). This works in .Net 1.1 but not...
1
by: Bogdan | last post by:
Hi, I'm trying to programmatically assign a script to a CancelButton's OnClientClick in a wizard step. I'm doing it in ActiveStepChanged event handler. I'm also assigning scripts to finish and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.