Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Session object error 'ASP 0185 : 8002000e'

Posted on 2001-08-15
8
Medium Priority
?
1,290 Views
Last Modified: 2012-06-27
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
     Sub Session_OnStart
          session("key") = 1
          dim dirDictionaryf
          set dirDictionary =server.CreateObject("Scripting.Dictionary")
          session("kk")=dirDictionary
           
     end Sub
</SCRIPT>

this code is writing on global.asa file.

But it showing an error which is given below


Session object error 'ASP 0185 : 8002000e'

Missing Default Property

A default property was not found for the object.

Any body can help me





0
Comment
Question by:Suneesh
8 Comments
 

Author Comment

by:Suneesh
ID: 6388056
<OBJECT RUNAT="Server" SCOPE="Session" ID="dirDictionary"
PROGID="Scripting.Dictionary"></OBJECT>

<SCRIPT LANGUAGE=VBScript RUNAT=Server>
     Sub Session_OnStart
          session("key") = 1
          set("kk")=dirDictionary
           
     end Sub
</SCRIPT>


I tried this way also.The same error coming there also
0
 
LVL 2

Expert Comment

by:MCM
ID: 6388113
suneesh -- I can't tell you what the problem is, but I can tell you this: you should definately not be storing a dictionary object in particular, but more generally any object at all, in the session object.

the dictionary object in particular bad to stuff into session; I will look for the MS Q that describes why. in general, objects in session will hang your IIS in a multi-user envrinronemt; it has to do with threading and you're tempting fate if you try it.

if you describe why you are trying to put a dictionary here, i or someone else may be able to suggest alternatives.

c
0
 
LVL 33

Accepted Solution

by:
hongjun earned 100 total points
ID: 6388344
Read this and you will know what is wrong with storing dictionary object in a Session variable.
http://www.15seconds.com/component/pg000184.htm

hongjun
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Expert Comment

by:bahu_m
ID: 6390661
As hongjun told it's not advisable to store any objects in session.

Just I tell you what's wrong with your code

What you did in the second posting is correct.

<OBJECT RUNAT="Server" SCOPE="Session" ID="dirDictionary" PROGID="Scripting.Dictionary"></OBJECT>

Here you already defined the dictionary object with session scope, then why are you again trying to store it in a session variable like:

set("kk")=dirDictionary

You don?t need this.

You can just access this dictionary object by it?s name in any page  like:

dirDictionary.Add ?key?, ?value?

In the first posting you have to do like:
Set session("kk")=dirDictionary

0
 

Author Comment

by:Suneesh
ID: 6391299
Thanks for ur valuable advice MCM,Hongjun and Bahu M
0
 
LVL 3

Expert Comment

by:Rem
ID: 6463157
This question is still open.
Don't forhet to grade this question if you accept a comment for an answer.

Bye

Rem
0
 
LVL 33

Expert Comment

by:hongjun
ID: 6502221
Please accept 1 answer!

hongjun
0
 

Expert Comment

by:ComTech
ID: 6502402
This abandonded question will be graded and split 3 ways, I will reduce the points here to 25 to allow for the split.

I will accept hongjun here and create new questions for the other two Experts.

25=hongjun
25=MCM
25=bahu_m

Thank you,
ComTech
Community Support Moderator
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Screencast - Getting to Know the Pipeline
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question