Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4040200
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:43:19+00:00 2026-05-20T12:43:19+00:00

I have a problem where occasionally we are getting errors on our webservice. It’s

  • 0

I have a problem where occasionally we are getting errors on our webservice. It’s adding a duplicate key to the dictionary in a function that gets the userid from the database in a homegrown digest authentication scheme. The function is real simple and the keys are hardcoded that get added and the new occurs on the dictionary immediately preceding. So really the only way this could happen is if multiple threads were running the function at once. It is a static function so I’m sure that’s what is happening. The stacktrace looks something like this.

system.collections.hashtable.insert(Object key, Object nValue, Boolean add)
system.collections.specialized.NameobjectCollectionbase.baseAdd(String name, object value)
SecMan.Getuser(String Username)
Sec.AuthenticationModule.OnAuthenticateRequest(Object source,EventArgs eventArgs)
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

It’s just happening on one server, everyone else is fine.

I’m a winforms guy and don’t know much about iis. Is the code in my SecMan.DLL getting executed asynchronously as I suspect? Does it always? If so it would seem like there would be problems more often at other sites. I’d like to nail down a definite cause before I roll out some kind of fix as it’s a big hassle.

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T12:43:20+00:00Added an answer on May 20, 2026 at 12:43 pm

    Yes, web apps (including web services) are asynchronous. If SecMan is a singleton, and you’re sharing it across multiple web requests, you need to make it thread safe.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem in some JavaScript that I am writing where the Switch statement
I have a problem using the Java search function in Eclipse on a particular
I have an intermittent problem with some code that writes to a Windows Event
Occasionally I have a problem when I attempt to update a web reference in
We have built a Windows Service that is running on client's machines, which occasionally
So I have a MapActivity that runs an asynchtask that occasionally updates what exactly
I have a very serious problem with Visual Studio 2008. Occasionally when I right-click
I am trying to debug a problem where users occasionally have locked files which
I have class that extends 'IntentService' - this class occasionally receives data from a
I have problem with return statment >.< I want to store all magazine names

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.