p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   error creating new folder in asp (http://p2p.wrox.com/showthread.php?t=39425)

kingbee March 6th, 2006 05:19 PM

error creating new folder in asp
i am newbie to asp.
we have an asp project with 2005 folder.i need to create a new folder 2006 and copy all the code to this folder.i did that and chaged every link to 2006 with in that code.but i am getting error in the following code
<%@ LANGUAGE="vbscript" %>
<% Response.Buffer = True %>
Set rsObj=Application("spObj").getsqlsp("getCheckOne", application("Conn"), _
"@uID", 129, 1, 7, request.form("tUID"), _
"@pwd", 200, 1, 20, request.form("tPWord"))

Microsoft VBScript runtime error '800a01a8'

Object required: 'Application(...)'

Thanks for your help..

Dj Kat March 10th, 2006 04:36 AM

Hi kingbee,

Check w3c schools for all asp related subjects this one is not that hard.

good luck

__________________________________________________ ________
This is my junk I'm gona eat it

joelchaconf March 10th, 2006 05:09 AM

Modify the code as follows:

Set rsObj=Application("spObj")
if IsEmpty(rsObj) then
end if

If you get the "Bingo", then the "spObj" entry in the application object is empty. The application object is used to cache data. Is is similar to the Session object.

Find out what part of the code is supposed to save data into the Application object with the "spObj" entry. That should be easy with a search.

Then, keep the code to check if the entry was empty anyway. It is bound to be empty the first time the application runs.

Cheers, Joel

All times are GMT -4. The time now is 11:34 AM.

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