Solved

vbscript dictionary bug?

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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

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 …
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
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

691 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