 |
| ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP Pro Code Clinic 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
|
|
|
|

March 30th, 2004, 12:43 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
80004005 unspecified error
While testing my asp programs, Iâve encountered an intermittent error â80004005 unspecified errorâ. Based on the articles Iâve pulled from the Internet, the error pertains to â80004005 Errors in Active Server Pages and Microsoft Data Access Componentsâ.
To give you a background, I have 3 programs, wherein the 1st and 2nd program collate data from a user, and the 3rd program saves the data in an AS/400 table. Iâve encountered the error in the 2nd program, during collating the data from previous program.
The error was encountered while performing this code:
For Each Item in Request.Form
If Item <> "nextbtn" then
Response.Write "<INPUT id=" & Item & " name=" & Item & " type=hidden value=" & chr(34) & Request(Item) & chr(34) & ">"
End If
Next
In the 2nd program, I am not accessing the AS/400 table. Why am I receiving this error? How can I resolve this error?
|
|

March 30th, 2004, 08:09 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
I don't see any ADO in that code, so I can't imagine that this code is the cause of your error. Does the second program (is that a page?) use ADO at all? Can you post more code?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

March 30th, 2004, 09:51 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
the second program does not use any ado codes.
<style>
A:link{color:"#330066";text-decoration:none}
A:visited{color:"#330066";text-decoration:none}
A:hover{color:red;text-decoration:none}
A:active{color:black;font-weight:bold;text-decoration:none}
P.info {padding:3pt;background-color:white;border-style:solid;
border-width:1pt;border-color:#330066;margin:3.0pt}
P.space {margin-left: 5pt}
P.space2 {margin-right: 5pt}
</style>
</head>
<body BGCOLOR="white" LINK="#666666" ALINK="black" VLINK="#330066" TEXT="#330066">
<form action="ebuEnrolsubmit.asp" method="post" id="ebuenrol2" name="ebuenrol2">
<%
For Each Item in Request.Form
If Item <> "nextbtn" then
Response.Write "<INPUT id=" & Item & " name=" & Item & " type=hidden value=" & chr(34) & Request(Item) & chr(34) & ">"
End If
Next
%>
<p>
<table WIDTH="650" BORDER="0" CELLPADDING="0" CELLSPACING="0" ALIGN="center">
<TBODY>
<tr>
<td HEIGHT="40" WIDTH="100%" BGCOLOR="#e0e0e0" VALIGN="center" COLSPAN="2">
<p CLASS="space">
<b> Enrollment Information</b> (For Individual Users Only)</p></td>
</tr>
|
|

March 31st, 2004, 02:58 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
This looks fine to me. Are you sure the problem is caused by Page2? Can you post the exact error message you get?
Also, you talk about application. Are you talking about individual pages, or about individual Applications defined in IIS?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

March 31st, 2004, 07:58 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
the error displayed by the system is
error '80004005'
Unspecified error
/enrollment/ebuenrol2.asp, line 606
where in line 606 is
<%
For Each Item in Request.Form
If Item <> "nextbtn" then
Response.Write "<INPUT id=" & Item & " name=" & Item & " type=hidden value=" & chr(34) & Request(Item) & chr(34) & ">"
End If
Next
%>
Please note that this is an intermittent error.
The second program only collate data from the user and the saving of records is being done in the third program.
This is an enrollment program.
|
|

April 1st, 2004, 02:52 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
That's really strange. Like I said before, that code looks fine to me. AFAICS, it should indeed just copy the stuff from the previous form to the current page.
Can it be that the line number is incorrect? Maybe you're using an include file that is run anytime and causes the error.
Otherwise, I am pretty stumped. You could try to debug the code you posted by adding an On Error Resume Next statement, and writing out each name and value in the Request.Form collection.
However, I doubt that will fix the problem, as I am pretty sure this code block isn't causing the problem in the first place.
With at least 606 lines of code, it's going to be hard to post the entire page here, so maybe you should try to break up your page in smaller parts and see where it bombs....
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

April 1st, 2004, 09:48 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I've already tried to debug this program, however I still cannot pin point the real cause of this error. And this program only happen in one of my server. If I tried to execute the same set of programs in my development server the problem will not appear.
I'm really confused.
|
|

April 2nd, 2004, 02:53 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Yeah, I can image.
Can you upload your pages (1, 2 and 3 + any include file) somewhere as a text file so we can take a look at them on-line? Don't forget to remove any sensitive info like passwords and e-mail addresses when you do so....
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

June 8th, 2004, 08:16 AM
|
|
Registered User
|
|
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi
I am having a similar problem and narrowed it down to a line that uses the Response object (Response.Cookies("PRO") = "").
Like you it works fine on the development environment just not on the live site. Also I have found that it does not work if the application is in the root of a website but works if it is put into a Virtual Directory. I am not using ADO or anything like that.
Did you discover a solution?
Thanks
Adrian
|
|
 |