473,287 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Metabase, CacheControlCustom and ASPNET 2.0

I have a problem with cache headers which I cannot track down. We are running
IIS6 on Windows Server 2003 and ASP.NET 2.0.

Our application has an installer which sets up our caching options in the
metabase - specifically it sets HttpExpires="D, 0" and
CacheControlCustom="no-cache" on the directory containing our web forms. In
IIS manager this shows up correctly (saying expires immediately).

For some specific web forms (aspx) within this directory we set explicit
values for HttpExpires and CacheControlCustom. These appear to work
correctly.

The problem is that the aspx pages which do not have explicit entries in the
metabase do not seem to inherit the cache settings from their parent
directory. These come out of IIS as having CacheControlCustom="private"
instead of "no-cache" as defined in the metabase.

Does anybody have any idea what might be causing this behaviour? I
understand that ASPNET gives aspx pages a default cachecontrol value of
private but how does this interact with the IIS metabase settings (does the
metabase setting get read in before the page is processed or after ASPNET has
produced it's output)?

One solution I can think of would be to set this programmatically for all
our aspx pages (which inherit from a base class) in ASPNET but how can I do
this while allowing the metabase cachecontrol to persist?

Many thanks for help on this issue!

May 19 '06 #1
0 2138

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Keith | last post by:
I think we have a corrupt IIS metabase on our web cluster. The controller is replicating the problem to the members. What steps can we take to confirm our IIS metabase is intact? I would...
1
by: Roger | last post by:
I need to edit the IIS 6.0 config file (metabase.xml) and had a go with this code, trying to get a list of all defined websites, and write their name to console, but it does not seem to work, would...
4
by: Dave | last post by:
I'm creating a web app using VS 2005. When I run the app I receive the error, "Failed to access IIS metabase" How do I correct this problem? Thanks for you help.
5
by: David Veeneman | last post by:
I had to reformat my Windows XP Professional development machine yesterday and reinstall everything, including IIS and VS 2005. I thought I had worked out the procedure to get ASP.NET up and...
2
by: Kivak Wolf | last post by:
Hey all, First off, I know some people have had this problem, and I read their post. However, I am still clueless... =( Here's the problem: I have a local IIS on my computer which I am using...
1
by: Schemer | last post by:
Hello, I tried to load a web page from my local IIS, and got this error: ----------------------------- Failed to access IIS metabase. Description: An unhandled exception occurred during the...
2
by: =?Utf-8?B?SmliZXkgSmFjb2I=?= | last post by:
Hi: I'm getting this error when I try to browse to a .aspx page that is located on a virtual directory located on my Win XP Pro machine. There's more text in the page that is displayed that says...
0
by: Jason Huang | last post by:
Hi, In my C#.Net 2.0, if the http of the web is http://MyIP:9999/MyWebService/MyForm.aspx. What will be the metabase of my IIS6? In the C#.Net DirectoryService, how do I do the directory...
1
by: Jason Huang | last post by:
Hi, In my C#.Net 2.0, how do I get the metabase path in the IIS 6? Thanks for help. Jason
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.