Solved

vbscript dictionary bug?

Posted on 1998-06-15
3
420 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now