Wrox Programmer Forums
|
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
 
Old March 30th, 2004, 12:43 AM
Registered User
 
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
 
Old March 30th, 2004, 08:09 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old March 30th, 2004, 09:51 PM
Registered User
 
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>
 
Old March 31st, 2004, 02:58 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old March 31st, 2004, 07:58 PM
Registered User
 
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old April 1st, 2004, 02:52 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old April 1st, 2004, 09:48 PM
Registered User
 
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old April 2nd, 2004, 02:53 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old April 5th, 2004, 05:01 AM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi guys check out this URL, which gives a good description for errors, might be of some help ....

http://www.aspwizard.co.uk/dev_aspwi...6&language=eng


 
Old June 8th, 2004, 08:16 AM
Registered User
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Unspecified error mahesh_82 ADO.NET 1 January 10th, 2007 06:24 AM
Unspecified Error. lam_lvl ADO.NET 4 December 22nd, 2006 02:47 PM
Unspecified Error??? werD420 Classic ASP Databases 2 April 10th, 2005 01:00 PM
unspecified error Meterman Classic ASP Databases 1 July 13th, 2004 10:19 AM





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