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 427687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:36:04+00:00 2026-05-12T19:36:04+00:00

0 I have an ASP.NET 3.0 application that works fine on one server. It

  • 0

0
I have an ASP.NET 3.0 application that works fine on one server. It uses application variables to check if a user has checked out a file and locks it for all other users. When I put the application on the load balanced servers, the application didnt work as expected since it multiple users got sent to multiple servers and each user could check out the requred file.

The main point is that, is there any way I can share the application variables in my application even though it is distributed on multiple servers. Or is there a better way to get a global variable?

EDIT: I am checking if a file is checked out by Application[“FileLocked”] is true or false

  • 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-12T19:36:04+00:00Added an answer on May 12, 2026 at 7:36 pm

    Two things for you to consider:

    1. In a load balanced environment, instance data within one server will not be available to another. While you can use Out-of-process session state, you can’t easily make Cache items or static class data available across servers. A user’s request will not always be routed to the same server (unless you use something like sticky sessions) – which can cause other problems.

    2. You probably should use a more persistent mechanism (like a lock file) to determine whether a particular user is using a file. Otherwise, you may introduce race conditions in your system – and if a user’s sessions ends without them unlocking the file you’ll end up with orphaned locked files in your system.

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

Sidebar

Related Questions

I have an ASP.NET 3.0 application that works fine on one server. It uses
I have an Asp.Net MVC application that works in the vs.net development web server.
We have an internal ASP.NET MVC application that requires a logon. Log on works
I have an ASP.NET application that uses a custom .NET library (a .DLL file).
I have a database on SQL Server 2008. I have an ASP.NET application that
I have an ASP.NET MVC (using the release candidate) application that works with a
I have asp.net application runs on iis 7. Until today everything works fine (for
I have one ASP.NET web application running at the web server root which provides
I have an ASP.NET application that is hosted in timezone A and is being
I have an ASP.NET application that calls other web services through SSL (outside the

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.