473,809 Members | 2,826 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 2183

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
45571
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
3303
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
9721
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
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10375
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10114
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
9198
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6880
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
5548
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...
1
4331
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
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.