Solved

vbscript dictionary bug?

Posted on 1998-06-15
3
429 Views
Last Modified: 2013-12-25
when passing a scripting dictionary in the session from one page to another, one of the items is having random text strings written over it.  what was once "4523" becomes "INNT/System32/asp.dll"

or "90."  Is this a problem with the vbscript dictionary?
0
Comment
Question by:davidtaylor
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Gary Davis earned 100 total points
ID: 1858354
If the scripting object is stored in an application object, you may have problems. According to the Web server readme, the scripting dictionary object is incorrectly marked as Both threaded instead of Apartment threaded so corruption may occur (see below):

The Scripting.Dictionary object is erroneously
marked as Both-threaded by IIS Setup. It should be marked as Apartment-threaded.

To change this, use the Registry Editor to open the following registry key:

HKEY_CLASSES_ROOT\
           CLSID  \{EE09B103-97E0-11CF-978F-00A02463E06F}
                   \InprocServer32

Change the named value for ThreadingModel to Apartment.
If you use the Dictionary object at Application scope
without making this change, corruption of data may occur.

0
 

Author Comment

by:davidtaylor
ID: 1858355
the dictionary object is being stored in the session, not in the application.  would this still affect corruption of the data?
0
 
LVL 18

Expert Comment

by:Gary Davis
ID: 1858356
If the dictionary object is not shared between more than one session, the solution above probably does not apply - you may want to try the registry fix anyhow and see if there is any different behavior.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

809 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