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 June 22nd, 2003, 12:17 PM
Authorized User
 
Join Date: Jun 2003
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error: Intrinsic variable with Application scope

I get the error
"Application object, ASP 0180 (0x80004005)
An intrinsic object cannot be stored within the Application object.
"

when I use the following lines of code:

displayName = Request.ServerVariables("SCRIPT_NAME");
WebPageNames = "webPageNames" + I;
// Note: "I" is an integer.
Application(WebPageNames) = displayName;


Thank you,

How can this be?

Daniel Hutchins
Woodbridge, CA
http://www.finehomemadesoap.com
__________________
Daniel Hutchins
Stockton, CA
http://www.finehomemadesoap.com
 
Old June 22nd, 2003, 03:24 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Now that is weird. Would it help if you convert Request.ServerVariables("SCRIPT_NAME") to a string first and then store it?

Request.ServerVariables("SCRIPT_NAME") is the "object" you're trying to store, so maybe converting it first would help.

Cheers,

Imar


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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Variable scope in XSLT? trufla XSLT 3 October 24th, 2008 01:45 PM
the scope of variable ccj_999 C++ Programming 9 October 26th, 2006 10:35 AM
DB Connection with Application/Page Scope Hazzardusa Classic ASP Databases 0 August 14th, 2005 10:10 PM
Variable with application scope madhukp PHP How-To 0 January 8th, 2005 12:41 AM





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