Register Blogs FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Go Back   DeveloperBarn Forums > Programming & Scripting > ASP Development

Sponsored Links

Discuss "Error Type:Active Server Pages, ASP 0113 (0x80004005)" in the ASP Development forum.

ASP Development - Learn coding practices and tips to get the best out of your Active Server Pages (ASP). Visit the ASP Development forum for help with ASP/VBScript and ASP/JScript applications.


Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old July 8th, 2008, 11:29 AM
guddu's Avatar
Barn Frequenter
 
Join Date: Jul 2008
Location: Oxford UK
Posts: 134
Thanks: 6
Thanked 3 Times in 2 Posts
Rep Power: 1
guddu is on a distinguished road
Default Error Type:Active Server Pages, ASP 0113 (0x80004005)

hi
below is my code.

Code:
<%
Option Explicit
Server.ScriptTimeout=900
Response.Expires = 0
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"

'Declare Global variable
Dim strQueueName,intSenderID,intRecipientID,intDocType  
Dim objRouteCalculator
Dim rsQueuePath
Dim strParent,strSpace,intDeep,i,lCounter
Dim splitPQ	
'Dim splitEQ	
'Dim splitRQ

If(Request.QueryString("ID") = 1)Then
   Select case Left(Request.QueryString("QueueName"),3)
		case "pq_"
			splitPQ= Split(Trim(Request.QueryString("QueueName")),"pq_")	
			strQueueName = "lq_"& Left(splitPQ(1),Len(splitPQ(1))-2) 
		case "eq_"	
			'splitEQ= Split(Trim(Request.QueryString("QueueName")),"eq_")	
			strQueueName = Replace(Trim(Request.QueryString("QueueName")),"eq_","lq_") ' "lq_"& Left(splitEQ(1),Len(splitEQ(1))) 
		case "rq_"
			'splitRQ= Split(Trim(Request.QueryString("QueueName")),"rq_")	
			strQueueName = Replace(Trim(Request.QueryString("QueueName")),"rq_","lq_") '"lq_"& Left(splitRQ(1),Len(splitRQ(1))) 
	End Select
	intSenderID = CLng(Request.QueryString("SenderID"))
	intRecipientID = CLng(Request.QueryString("RecipientID"))
	intDocType = CLng(Request.QueryString("DocType"))
Else
	strQueueName = Trim(Request.Form("cboQueueToRouteFrom"))
	intSenderID = CLng(Request.Form("txtSenderID"))
	intRecipientID = CLng(Request.Form("txtRecipientID"))
	intDocType = CLng(Request.Form("txtDocType"))
End If 

On Error Resume Next 
Set objRouteCalculator = Server.CreateObject("ProcessMapChecker.ProcessMap")
Set rsQueuePath = objRouteCalculator.CalcRoute(intSenderID,intRecipi  entID,intDocType,strQueueName)

intDeep = 0
strParent = ""
lCounter = 0
If Not rsQueuePath.EOF  Then
	Response.Write "<Table witdth='100%' cellSpacing='0' cellPadding='0' align='left' border='1'>"  
	While Not rsQueuePath.EOF
		If (strParent <> rsQueuePath("Parent")) Or rsQueuePath("Parent") = "" Then
			intDeep = intDeep + 1
			strParent = rsQueuePath("Parent")
		End If
		Response.Write "<TR class=""Row" & lCounter Mod 2 & """><TD Width='100%'>" 		
		For i = 1 To (5 * rsQueuePath("Depth"))
			Response.write "&nbsp;"
		Next
		lCounter = lCounter + 1
		Response.write rsQueuePath("Text") & "</TD></TR>"
		
		
		rsQueuePath.MoveNext
	Wend 
	Response.Write "</Table>"  	
Else
	Response.write "<Table align=""center""><tr><td><font color=""Red""><b>Sorry !! Record not found</b></font></td></tr></Table>"
End If 
Set rsQueuePath = Nothing
Set objRouteCalculator  = Nothing
%>
<HTML>
<HEAD>
<TITLE>Queue Process Map</TITLE>
<Link Rel="StyleSheet" HRef="..\..\Main.css" Type="text/css">	
</HEAD>
<BODY>
</BODY>
</HTML>
its working fine.but problem is i m getting some time below error.can anybody tell me what could be cause?At iis i changed my script time out 900 seconds
i debugged my vb code.there i m not getting any problem.

Thanks.
Code:
Error Type:
Active Server Pages, ASP 0113 (0x80004005)
The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.
/Plugins/ProcessMapChecker/QueueProcessMap.asp
Reply With Quote
Sponsored Links
  #2  
Old July 8th, 2008, 11:46 AM
AOG123's Avatar
Lightning Master
 
Join Date: Mar 2008
Location: Fortress Of Solitude
Posts: 113
Thanks: 11
Thanked 27 Times in 21 Posts
Rep Power: 1
AOG123 will become famous soon enough

Awards Showcase
Microsoft Access 
Total Awards: 1

Default

Hi, there is a good link here, with 3 options.

PRB: "Script Time Out" Error in Active Server Pages (ASP)

I'd guess you need to use the Server.ScriptTimeOut property to programmatically increase the ScriptTimeOut property value.
__________________
If i helped you, make me famous by clicking the

Reply With Quote
  #3  
Old July 8th, 2008, 11:49 AM
guddu's Avatar
Barn Frequenter
 
Join Date: Jul 2008
Location: Oxford UK
Posts: 134
Thanks: 6
Thanked 3 Times in 2 Posts
Rep Power: 1
guddu is on a distinguished road
Default

Thanks for reply.u can see in my code i m already using this Server.ScriptTimeout=900
and already gone through that link.but no luck.
Reply With Quote
  #4  
Old July 8th, 2008, 12:03 PM
richyrich's Avatar
Super Moderator
 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 460
Thanks: 31
Thanked 43 Times in 43 Posts
Blog Entries: 1
Rep Power: 2
richyrich will become famous soon enoughrichyrich will become famous soon enough

Awards Showcase
JavaScript Classic ASP 
Total Awards: 2

Default

Try commenting out the on error resume next line.

Most probably there's some error that is not being shown and then the page is timing out.
Reply With Quote
  #5  
Old July 8th, 2008, 12:09 PM
guddu's Avatar
Barn Frequenter
 
Join Date: Jul 2008
Location: Oxford UK
Posts: 134
Thanks: 6
Thanked 3 Times in 2 Posts
Rep Power: 1
guddu is on a distinguished road
Default

RR--> I have already that.but no Specific error message shown.i tell what problem i m facing.when i access this page first time it loads page perfectly.and after some time again i try to load this page in that case i get error.for same information putting in my form its works some time and some time gives error.
Reply With Quote
  #6  
Old July 8th, 2008, 12:36 PM
richyrich's Avatar
Super Moderator
 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 460
Thanks: 31
Thanked 43 Times in 43 Posts
Blog Entries: 1
Rep Power: 2
richyrich will become famous soon enoughrichyrich will become famous soon enough

Awards Showcase
JavaScript Classic ASP 
Total Awards: 2

Default

How do you get it working again?

If you remove the On Error Resume Next line, does it still just give the time out error or something different?
Reply With Quote
  #7  
Old July 8th, 2008, 05:42 PM
guddu's Avatar
Barn Frequenter
 
Join Date: Jul 2008
Location: Oxford UK
Posts: 134
Thanks: 6
Thanked 3 Times in 2 Posts
Rep Power: 1
guddu is on a distinguished road
Default

rr i m at home.2morrow i will post all details.any way thanks a lot.
Reply With Quote
  #8  
Old July 8th, 2008, 06:12 PM
jmurrayhead's Avatar
The Barnfather
 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 953
Thanks: 22
Thanked 93 Times in 90 Posts
Blog Entries: 6
Rep Power: 4
jmurrayhead is a jewel in the roughjmurrayhead is a jewel in the roughjmurrayhead is a jewel in the roughjmurrayhead is a jewel in the rough

Awards Showcase
Microsoft Windows Microsoft SQL Server Microsoft .Net Classic ASP 
Total Awards: 4

Default

Guddu,

Look at all your looping (i.e. For Next... and Do While...)

Ensure that these aren't infinite loops and can terminate. That is often a cause for script timeouts.

Definitely verify the value of (5 * rsQueuePath("Depth")).

Also, I see you're checking for EOF:
Code:
If Not rsQueuePath.EOF  Then
It's a good idea to check for BOF, also:
Code:
If Not rsQueuePath.EOF And Not rsQueuePath.BOF Then
__________________
jmurrayhead
If you agree with me... click the icon!
If my post solved your problem, click the button in the lower right-hand corner of the post.

If you like it here...throw us a few bones to help
support us.

Join our Folding team: DeveloperBarn Folding

Reply With Quote
  #9  
Old July 8th, 2008, 06:18 PM
guddu's Avatar
Barn Frequenter
 
Join Date: Jul 2008
Location: Oxford UK
Posts: 134
Thanks: 6
Thanked 3 Times in 2 Posts
Rep Power: 1
guddu is on a distinguished road
Default

hey J thanks for your suggestion.i will give try to all said by u.
Reply With Quote
  #10  
Old July 9th, 2008, 06:18 PM
jmurrayhead's Avatar
The Barnfather
 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 953
Thanks: 22
Thanked 93 Times in 90 Posts
Blog Entries: 6
Rep Power: 4
jmurrayhead is a jewel in the roughjmurrayhead is a jewel in the roughjmurrayhead is a jewel in the roughjmurrayhead is a jewel in the rough

Awards Showcase
Microsoft Windows Microsoft SQL Server Microsoft .Net Classic ASP 
Total Awards: 4

Default

Were you able to get this sorted, Guddu?
Reply With Quote
Reply

  DeveloperBarn Forums > Programming & Scripting > ASP Development

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Type Mismatch in Criteria Expression alansidman Microsoft Access 1 April 9th, 2008 04:33 PM
[Error] Type mismatch: HTMLEncode Rebelle ASP Development 20 March 28th, 2008 09:30 AM
SQL Server Views theChris Microsoft SQL Server 3 March 23rd, 2008 07:35 PM
Date Last Modified for ASP Pages mehere ASP Code Samples 0 March 21st, 2008 12:20 PM


All times are GMT -4. The time now is 10:44 AM.



Content Relevant URLs by vBSEO 3.2.0