Steven,
Yes, I have tried the no-cache meta tag in the html file, no good.
I have also tried the no-cache custom header in IIS but still no good.
I tried the following reg edit, UriEnableCache from a MS KB,
http://support.microsoft.com/?id=820129 . The only IIS Caching that I
am aware of in IIS 6.0 is for ASP and I turned that option off as well
and still no good. I have rebooted after each fix I tried as well. I
have even gone as far as looking and comparing the metabase info for
the sites and the differences I copied into the scripted site settings,
did a iisreset and still no go. Below is the bulk of the code that is
used to create the site. Remember this issue is only with users created
by the script.
Function createSite
'// Creates web site
Dim ServerComment,RootDirectory,IpAddress,PortNum,HostName
Dim BindingString
Dim aryBindings(1)
ServerComment = domain
RootDirectory = websitesdir & domain & "\"
IpAddress = "172.16.4.35"
PortNum = "80"
HostName = domain
aryBindings(0)= IpAddress & ":" & PortNum & ":" & HostName
aryBindings(1)= IpAddress & ":" & PortNum & ":www." & HostName
'SiteNumber = 500
Set w3svc = GetObject("IIS://" & computer & "/w3svc")
Set NewWebServer = w3svc.Create("IIsWebServer", NewSiteNumber)
NewWebServer.ServerBindings = aryBindings
NewWebServer.ServerComment = ServerComment
NewWebServer.AnonymousUsername = createUser()
NewWebServer.AnonymousUserpass = pass
NewWebServer.LogFileDirectory = weblogsdir + domain
NewWebServer.SetInfo
Set NewDir = NewWebServer.Create("IIsWebVirtualDir", "ROOT")
NewDir.Path = RootDirectory
NewDir.AccessRead = True
'NewDir.AccessExecute = True '
NewDir.AppCreate (True)
NewDir.AppFriendlyName = domain
NewDir.AppRoot = Replace(NewDir.ADsPath,"IIS://" & computer,"/LM")
NewDir.AppPoolId = "basicapppool1"
NewDir.AppIsolated = "2" 'Added 9/11/2006
NewDir.SetInfo
Set NewDir = nothing
Set NewWebServer = nothing
set w3svc = nothing
wscript.echo "The site for " & domain & " has been created"
End Function
Steven Burn wrote:
> Do you have the no-cache meta tag included?, and of course, caching in IIS
> turned off?
>
> --
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> <heintz.larry.RemoveThis@gmail.com> wrote in message
> news:1158012156.695036.89240@e3g2000cwe.googlegroups.com...
> > Hello All,
> >
> > I have a web site creation script that I wrote for IIS 5.0 and am
> > using a tweaked version it in IIS 6.0. The web site is created and
> > works fine except for static pages are being cached. If I do a IISRESET
> > the caching issue is gone until I make a change to the static page
> > again. The weird things is that when a site is created manually in IIS
> > 6.0 the caching issue does not happen. I have been able to reproduce
> > this issue on 2 different 2003 Server Web Edition and 2003 Enterprise
> > Edition. Anyone have a idea's?
> > >> Stay informed about: Web Site Creation Script and Caching Static Pages Issue