Solved

vbscript dictionary bug?

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Office 365 Pass Username an Password in URL 3 90
maps stopped work unsure why 7 48
ajaxSubmit is giving me an error 1 47
Grunt script for Build Process 1 42
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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.

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