Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 February 17th, 2004, 03:59 AM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Setting up a folder as an application

First, I am very new at this ASP.

Has anyone "worked through" the "Beginning Active Server Pages 3.0" book? Well I am working in Chapter 8 and for some reason cannot get the "Working With Application-Level Variables" exercise to work. One of the instructions is "You need to make sure "global.asa" and "appVarTest.asp" are both in the "BegASP" folder, and that this folder is set up as an application."

Well, my question is how can I be sure that "BegASP" is set up as an application? Is there a foolproof way? Because when I try to complete the exercise, "myAppVariable=" keeps coming up empty. And even after reading over Chapter 1 again I am not sure if I am setting up "BegASP" as an application, correctly. I realize the it's a simple problem, but would someone take a look at the chapter and get back to me. I would really appreciate it.

 
Old February 17th, 2004, 04:56 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,

To make your folder as an application, follow these steps:

1. Open up the IIS Management Console.
2. Locate the BegASP folder, probably somewhere below the Default Web Site
3. Open the Properties dialog for the folder
4. On the Directory tab, click the Create button.
5. If necessary, click the (new) Configuration button to tweak the settings for the new application.

This will mark the folder as a Virtual Directory so you can use the global.asa file.

It surprises me that the application variables are empty, though. Usually, on a default setup, the BegASP folder will see your Default Web Site as its root, and use its Application state store for Application variables. Maybe something else is wrong as well?

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting my Application as Startup in WinXp Venkatachalam ASP.NET 2.0 Professional 1 February 4th, 2008 11:28 AM
change permission of folder in web application SachinMalge ASP.NET 2.0 Basics 0 March 12th, 2007 09:31 AM
Setting a new Excel application Shasur Pro VB 6 1 September 21st, 2005 10:12 AM
Setting a new Excel application Shasur Excel VBA 1 September 21st, 2005 10:11 AM
Setting Folder Permissions lewdogg Classic ASP Components 0 June 28th, 2005 07:23 PM





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