Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 August 12th, 2004, 03:09 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable to catch error HttpException (0x80004005):

Any one please help me out of this error:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Request timed out.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request timed out.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): Request timed out.]

My Code is


str_URLpart = htbl_whoisURL.item(str_suffix)
    str_URLpart = func_getWhoisURL(str_URLpart)
    str_URL = str_URLpart & str_domainName & "." & str_suffix
    str_searchDomain = str_domainName & "." & str_suffix
    Try
        URLReq = WebRequest.Create(str_URL)
        URLRes = URLReq.GetResponse()
        str_Stream = URLRes.GetResponseStream()
        td_searchResults.Text =""
        str_returnString = New StreamReader(str_Stream).ReadToEnd()
        td_searchResults.Text = td_searchResults.Text & func_domainSearchResult(str_returnString,htbl_whoi sURL.item(str_suffix),str_searchDomain)
    Catch ex As Exception
        td_searchResults.Text = "<br><strong>URL could not be resolved !</strong><br>"
        td_searchResults.Text = td_searchResults.Text & "<br>" & htbl_whoisURL.item(str_suffix)
        td_searchResults.Text = td_searchResults.Text & "<br>" & ex.Message

    End Try





__________________
Shibu Narayanan
Software Associates
 
Old August 12th, 2004, 06:42 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Check out whether this helps you out
http://support.microsoft.com/default...b;en-us;829888

 
Old August 12th, 2004, 08:08 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your comment.

  I have seen this before itself.
  But Iam wondoring why this error is not handled by the error handler.
  Could you please advise on this.
  You can see in my codes that I have used the error handler and it is working perfectly for all other errors.


 
Old August 12th, 2004, 10:02 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Because it's timing out- the event handler doesn't fire. The page that would fire the event handler is the one that's stuck- so it can't be fired on that page. The error is generated by the .NET framework notifying you of the timeout.


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old August 12th, 2004, 11:20 PM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks levy :)

Can you suggest a solution for this.
Is there any other header codes by which I can solve this.
At present Iam using following header codes.

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<% Session.Timeout = 3600%>
<%@ Import NameSpace = "System.IO" %>
<%@ Import NameSpace = "System.Net" %>
<%@ Import NameSpace = "System" %>
<%@ Import NameSpace = "System.Text" %>
<%@ Import NameSpace = "System.Text.RegularExpressions" %>



 
Old August 13th, 2004, 09:46 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

No, if the page is timing out- the page is timing out. What you need to do is fix the page so it does not time out.


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old May 22nd, 2007, 04:21 AM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can increase the Page execution timeout in your web.config by setting a value in seconds like this:

<httpRuntime executionTimeout="600"/>

This is a bit of a Heisenbug because the executionTimeout is only used if web.config has

<compilation debug="false">

and if you are not debugging the application, and if something in the page processing takes longer than the default executionTimeout of less than two minutes.







Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC Error Type 0x80004005 hbansal Classic ASP Professional 22 February 25th, 2009 12:57 AM
0x80004005 ODBC Error in ASP Script hbansal ASP.NET 1.0 and 1.1 Basics 1 September 12th, 2008 03:09 PM
Error Type: (0x80004005) Unspecified error wilfree Classic ASP Databases 3 April 3rd, 2007 09:04 AM
(0x80004005) Unspecified error MiltonAbreu Classic ASP Components 6 July 7th, 2004 11:34 AM





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