Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 6th, 2006, 05:19 PM
Registered User
 
Join Date: Jan 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default error creating new folder in asp

Hi,
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..
 
Old March 10th, 2006, 04:36 AM
Friend of Wrox
 
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi kingbee,

Check w3c schools for all asp related subjects this one is not that hard.
http://www.w3schools.com/asp/met_createfolder.asp

good luck


__________________________________________________ ________
This is my junk I'm gona eat it
 
Old March 10th, 2006, 05:09 AM
Authorized User
 
Join Date: Mar 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Modify the code as follows:

Set rsObj=Application("spObj")
if IsEmpty(rsObj) then
    Response.Write("Bingo")
    Response.End
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 2.0 Web Site Admin error on Creating User fmegersa ASP.NET 2.0 Basics 0 December 1st, 2006 08:57 PM
ASP 0177 error creating database [email protected] Classic ASP Databases 6 March 3rd, 2005 01:43 PM
Creating Folder On Server Prabhakar_dt Classic ASP Basics 1 December 29th, 2004 05:07 AM
creating folder: System.UnauthorizedAccessExceptio akthar General .NET 3 August 27th, 2004 07:58 AM
Need help in creating folder tree velmj XSLT 1 November 19th, 2003 06:28 AM





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