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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:58:53+00:00 2026-05-16T11:58:53+00:00

I seem to have run into a strange issue whereby a string reference is

  • 0

I seem to have run into a strange issue whereby a string reference is not loading an updated value.

In short, I’ve replaced a DLL file (App_Code.dll) that contains a bunch of page titles (think HTML Page Titles), but the values aren’t being updated when referenced from other DLL’s.

Here’s a code snippet from a codebehind of a sample page:

   this.Master.PageDescription = Constants.Titles.CardInfoPageDescription;

The Constants class is compiled into App_Code.dll, which I just replaced. I’ve also cleared the cache (IIS 6 in this case), rebooted the machine, and made sure my local browser cache is empty.

However, when I load the web page, it is not loading the new value for Constants.Titles.CardInfoPageDescription. This is true for ALL web pages.

The only way I can get it to update it to replace the DLL for that page, which hasn’t changed at all…

Any idea why this is? Is this string reference not actually looked up at runtime and built into the page DLL’s?

Any help is GREATLY appreciated!

Thanks,
Adam

  • 1 1 Answer
  • 1 View
  • 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-16T11:58:54+00:00Added an answer on May 16, 2026 at 11:58 am

    Let me guess: your constants are exposed as public const fields.

    Whenever you use a const, its value is embedded into the compiled code at build-time rather than being referenced dynamically at run-time. So when you subsequently replace the DLL where the constants are declared, all code outside of the replaced DLL will continue to use the old value until it is recompiled.

    On a more philosophical note – why are your “constants” being updated? Only use const for values that will never, ever, ever change. If it can change then it’s not a constant.

    And on a more practical note – it’s not generally considered good practice to expose public fields. Use properties instead. (One possible exception to this rule might be genuine constants that will never, ever, ever change.)

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

Sidebar

Related Questions

I seem to have run into a strange bug or more likely some setting
I seem to have run into an issue in what I am trying to
So I have run into a bit of a strange problem and can not
I've run into a strange issue in Firefox 12. setTimeout() doesn't seem to always
I seem to run into this situation quite a lot and have yet to
I seem to have run into a bit of trouble this morning with removeClass
I seem to have run into a case where git doesn't notice inline changes
I just recently started toying with output buffering and seem to have run into
I seem to have run into difficulties with a simple database insert statement. I'm
I've run into an issue that I can't seem to figure out the solution

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.