Click here to Skip to main content
15,915,759 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionProblem in binding grid with XML(From DB) Pin
nileshbahirshet23-Dec-08 0:36
nileshbahirshet23-Dec-08 0:36 
AnswerRe: Problem in binding grid with XML(From DB) Pin
Not Active23-Dec-08 1:18
mentorNot Active23-Dec-08 1:18 
GeneralRe: Problem in binding grid with XML(From DB) Pin
nileshbahirshet23-Dec-08 2:07
nileshbahirshet23-Dec-08 2:07 
GeneralRe: Problem in binding grid with XML(From DB) Pin
Not Active23-Dec-08 2:23
mentorNot Active23-Dec-08 2:23 
GeneralRe: Problem in binding grid with XML(From DB) Pin
nileshbahirshet23-Dec-08 2:47
nileshbahirshet23-Dec-08 2:47 
GeneralRe: Problem in binding grid with XML(From DB) Pin
nileshbahirshet23-Dec-08 2:53
nileshbahirshet23-Dec-08 2:53 
QuestionHow to bind grid from XML(From database) Pin
nileshbahirshet23-Dec-08 0:34
nileshbahirshet23-Dec-08 0:34 
Questionsetting WebRequest timeout Pin
vernicht22-Dec-08 9:20
vernicht22-Dec-08 9:20 
My objective is to get the answer from up to 6000 Urls in the shortest time. It was working very well (12 seconds for 5200 LAN Addresses) until some delay started to happen.

My code uses up to 20 simultaneous HttpWebRequest.BeginGetResponse with ThreadPool.RegisterWaitForSingleObject for timeout handling.

However some (up to 4 in 5,000) of the requests never hit the TimeoutCallback function with the second parameter (timedOut) true, and they waste 5 minutes of my precious time until they hit theBeginGetResponseCallback function and then raise a WebException. The exceptions says something like "the operation reached the time limit", but as the exception message is in portuguese(my native language) I couldn't Google it.

I wonder if I can reduce this time limit to 20 seconds for example. Anyone knows how? I've already tried:

<system.web>
<httpRuntime executionTimeout="20"/>
</system.web>

But as I'm running it as a Console Application, ASP.NET configurations don't work. And I also tried:

myHttpWebRequest.Timeout = 20*1000;

And

ThreadPool.RegisterWaitForSingleObject(result.AsyncWaitHandle, new WaitOrTimerCallback(TimeoutCallback), AsyncState, 20*1000, true);


Without success. Can you help me?


What I am trying to say is there are 4 possible results for an asynchronous HTTP request:

1) Never reach the callback function -> timeout callback function
2) Reaches and answers sucessfully
3) Reaches and raises an exception
4) Delay exactly 5 minutes until raise an "time limit" web exception inside the callback function

The 4th possibility is the one is driving me nuts
QuestionAssembly version numbers Pin
Not Active22-Dec-08 3:17
mentorNot Active22-Dec-08 3:17 
AnswerRe: Assembly version numbers Pin
Pete O'Hanlon22-Dec-08 3:35
mvePete O'Hanlon22-Dec-08 3:35 
GeneralRe: Assembly version numbers Pin
Not Active22-Dec-08 3:48
mentorNot Active22-Dec-08 3:48 
Questionasp.net Pin
ranjithselvaraj21-Dec-08 23:07
ranjithselvaraj21-Dec-08 23:07 
AnswerRe: asp.net Pin
Pete O'Hanlon21-Dec-08 23:52
mvePete O'Hanlon21-Dec-08 23:52 
QuestionHow many people have NET Framework 2.0 (or later) installed? Pin
Mika Larramo21-Dec-08 13:44
Mika Larramo21-Dec-08 13:44 
AnswerRe: How many people have NET Framework 2.0 (or later) installed? Pin
Christian Graus21-Dec-08 16:25
protectorChristian Graus21-Dec-08 16:25 
GeneralRe: How many people have NET Framework 2.0 (or later) installed? Pin
Mika Larramo3-Jan-09 15:42
Mika Larramo3-Jan-09 15:42 
AnswerRe: How many people have NET Framework 2.0 (or later) installed? Pin
Thomas Stockwell22-Dec-08 6:20
professionalThomas Stockwell22-Dec-08 6:20 
GeneralRe: How many people have NET Framework 2.0 (or later) installed? Pin
Mika Larramo3-Jan-09 15:47
Mika Larramo3-Jan-09 15:47 
QuestionReading the security log in Vista Pin
ByStorm Software21-Dec-08 12:12
ByStorm Software21-Dec-08 12:12 
AnswerRe: Reading the security log in Vista Pin
Graham Bradshaw21-Dec-08 12:35
Graham Bradshaw21-Dec-08 12:35 
GeneralRe: Reading the security log in Vista Pin
ByStorm Software21-Dec-08 12:48
ByStorm Software21-Dec-08 12:48 
GeneralRe: Reading the security log in Vista Pin
ByStorm Software21-Dec-08 14:32
ByStorm Software21-Dec-08 14:32 
GeneralRe: Reading the security log in Vista Pin
ByStorm Software22-Dec-08 16:58
ByStorm Software22-Dec-08 16:58 
QuestionFXCOP CLSCompliant Pin
#realJSOP19-Dec-08 4:52
professional#realJSOP19-Dec-08 4:52 
AnswerRe: FXCOP CLSCompliant Pin
Lev Danielyan19-Dec-08 5:15
Lev Danielyan19-Dec-08 5:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.