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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:06:31+00:00 2026-06-06T00:06:31+00:00

Is the Application variable shared when the web application has multiple role instances in

  • 0

Is the Application variable shared when the web application has multiple role instances in window azure? And I am using Dedicated cache worker role. Is Application Variable is preserved the cache? If not then how we can do it?

  • 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-06-06T00:06:32+00:00Added an answer on June 6, 2026 at 12:06 am

    The Application variable is stored in-memory (see this MSDN reference article). There’s no option to persist it or externalize it, so there’s no way to share application state across web role instances. The article points this out, in terms of inability to share application state across servers in a web farm.

    As this SO answer suggests, you’d need to use some shareable resource for application-level content. In other words, just don’t use the Application variable. You could store app-level variables easily in a Windows Azure Table or Cache (either dedicated cache role or shared cache within your web role).

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

Sidebar

Related Questions

Are Java static variables shared across instances of the same web application? class MyClass
I know that a static variable used in a web application is shared for
I am using a variable/propery of my application delegate as a global. (I don't
I am creating a business application that has a variable width sidebar and content
How can I set a global variable in a C# web application? What I
I'm currently developing a new web application. This is the first time I'm using
I am porting a large web application to a shared web hosting environment. The
If you have a multi-threaded application with a word variable shared between threads (ie
In my web application I am using sessions for storing the user specific data
How to dispose the shared variable in vb.net i am using shared object of

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.