473,799 Members | 2,950 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Metabase, CacheControlCus tom 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
CacheControlCus tom="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 CacheControlCus tom. 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 CacheControlCus tom="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 programmaticall y 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 2182

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

Similar topics

2
3312
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 prefer not to do ADSI calls. Isn't there a command to interate thru the metabase? Many thanks, Keith
1
6247
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 appreciate any pointers: ----------- Try Dim doc As New XmlDocument Dim nodelist As XmlNodeList Dim node As XmlNode
4
3029
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
45570
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 running on a local machine, but I am getting this error when I try to open a web app on the local IIS installation: "Failed to access IIS metabase". Okay--the ASPNET account doesn't have access to the IIS metabase. I ran aspnet_regiis with the -ga...
2
3302
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 to run ASP.NET 2.0 locally. However, after I build my web page and try to show it in the browser, it gives this error: ---
1
2052
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 execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
2
26798
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 "the process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904" I tried to execute the...
0
1170
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 mapping to the metabase? Thanks for help.
1
4066
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
0
9686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10475
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10250
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10026
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.