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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:25:27+00:00 2026-06-17T16:25:27+00:00

I’m trying to use static .html pages for a website that encounters large traffic

  • 0

I’m trying to use static .html pages for a website that encounters large traffic spikes. The website is an MVC3 app. The static .html pages are in a directory structure something like the following:

approot
|---content
        index.html
    |---staticpages
            page1.html
            page2.html
            page3.html

I’ve set the defaultDocument in web.config to "content/index.html". If I simply include the .html files in the project and deploy the app, it runs fine.

What we want to do is put all of the html files as blobs in a storage container. A background task (run in WebRole) checks for any updated files at a regular interval. The background task also checks to see if the .html files exist or need updating when the servers starts up. Ideally, we’d rather not have to include the .html files in the project and just grab them from storage when the server starts.

The background task pulls down the files and puts them in the proper directories just fine. However, when trying to access the website at say http://www.mysite.com, IIS returns a 403 error. If we try to access any of the other .html pages we get a 404 error. This does not occur when testing the MVC app in a local development environment.

When I turn on directory browsing in IIS, none of the files or the directories appear when getting a directory for the site. Once again using just the domain like http://www.mysite.com.

If I do include the .html files in the webrole project and then try to update one in storage, the blob is pulled from storage, but IIS serves up the old page. I’ve deleted my browser cache to be sure that wasn’t an issue. The new file is being updated correctly on the server. I’ve copied it to my local machine and looked inside it and it is indeed the updated version.

So, from what I can deduce so far it seems like Azure caches the entire website as it is deployed and doesn’t seem to allow for content change.

Is there a way to force Azure to recognize the changes or are we going to be forced to redeploy whenever there’s a change to a static .html page?

  • 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-17T16:25:28+00:00Added an answer on June 17, 2026 at 4:25 pm

    When you deploy your webrole to run on Azure, it actually packages up two copies of your Web Role. One ends up under AppRoot and one ends up under SitesRoot.

    Your WebRole.OnStart processes runs in AppRoot, but your website is actually served from the copy in SitesRoot. So, the problem is that your code is happily running and copying files down from blob storage, but they are going under AppRoot so are invisible to your site.

    You need to either start a thread in global.asax to do the copying or modify your code to interrogate IIS for the actual path to your web site and modify it to copy the files there. The latter is probably the safer approach.

    When you run in the local emulator, everything runs from your main build directory, hence the difference in behavior.

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

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

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.