[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

vbscript dictionary bug?

Posted on 1998-06-15
3
Medium Priority
?
447 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Gary Davis earned 200 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

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

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

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
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

649 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