SQL Server Cache dependency not working

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am using Visual Studio and asp.net. My main page shows a summary list of
all accounts. The data source for the select is a SQL Server stored procedure
that accesses 3 tables. A button on the page can redirect the user to a page
for entering a new account. That page can insert data into all 3 tables.
After the insert stored procedure runs, I redirect the user back to the first
page but the new data does not show up there. Here is how I set up the cache
dependency:

1. From Visual Studio, command line, aspnet_regsql, I enabled database cache
dependency and also ran it for 4 table ( the 3 referenced above and one more
that I want to reflect updates.) Note my -S had to refer to a named instance
(localhost didn't work) because I can be running different instances on my
computer for different projects. This seemed to work fine and generate the
proper tables.
2. I added a <caching> element to <system.web> in web.config:
<caching>
<sqlCacheDependency enabled="true">
<databases>
<add name="AdminiSafe"
connectionStringName="AdminiSafeConnectionString2"/>
</databases>
</sqlCacheDependency>

</caching>
3. To my SQLDataSource on my main master page (the datasource and master are
used on multiple pages - so they are defined in a master), I added to Enable
Caching =" true":
CacheDuration="3600"

SqlCacheDependency="AdminiSafe:Table1;AdminiSafe:Table2;AdminiSafe:Table3"

This all had no effect. The new data I inserted into the tables did not show
up on the main page until the CacheDuration passed. Did I miss something? Is
there a problem because I am using a master page?
.



Relevant Pages

  • Re: Customizing User Profiles in Control Panel
    ... I was trying to play with "control userpasswrds2" and after ... In any case, in the end I wound up with a ton of accounts, one of which (w/ ... this 2nd old desktop comp (as a Slave, the un-bootable, blown-MBR HD is ok). ... current Master HD. ...
    (microsoft.public.windowsxp.customize)
  • Re: Design View not working
    ... it will not display the design view. ... install saying that there wasn't enought disk space, ... there are cases where you can mess up the master to the point it will ... I have visual studio 2005 professional edition with vs framework 2.0 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Visual Studio dialogue discrepancy
    ... why a Web Application Project shouldn't be able to select Master Pages. ... If you don't want to (for whichever reason), let me know and I will file it. ... I wish I could give you a gem which would help you but I simply dont know the answer, just the approach I would take. ... Have you tried re-installing Visual Studio on the ones which dont work? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Front Page cannot connect due to Kerberos failure
    ... I have a two domain environment with a domain MASTER and a subdomain ... User accounts are in MASTER, and a WIndows 2003 Server with IIS 6 ... Users can log onto the conolse of the server, ... However, when they attempt to connect to this IIS 6 server via Front Page, ...
    (microsoft.public.inetserver.iis.security)
  • Front Page cannot authenticate with IIS 6 on Windows 2003
    ... I have a two domain environment with a domain MASTER and a subdomain ... User accounts are in MASTER, and a WIndows 2003 Server with IIS 6 ... Users can log onto the conolse of the server, ... However, when they attempt to connect to this IIS 6 server via Front Page, ...
    (microsoft.public.win2000.security)