S_A
Posts: 29
|
| Posted: 10/25/2004, 9:33 AM |
|
Hi,
Does anyone know just what cache.asp does? I'm running an ASP / MSACCESS / IIS 6.0 site on a shared hosting plan and it keeps bombing out. The thing is the index page does not even display - I just get an error 500 - there is no database component on this page - just an included header and footer.
Of course, none of the other pages work either 
The reason I ask about cache.asp is that my ISP tells me that I have an error at line 24 - and they think that's why the site is down.
Here is a code chunk with the offending line marked: -
'
' Release all cached elements from the cache
Sub Clear()
Dim Key, Keys, KeyIndex
Dim KeysString : KeysString = ""
For Each Key in Application.Contents
If Left(Key, PREFIX_LENGTH) = PREFIX Then KeysString = KeysString & "/" & Key
Next ..............................................OFFENDING LINE NO 24
Keys = Split(KeysString, "/")
Application.Unlock
For KeyIndex = 1 To UBound(Keys)
Application.Contents.Remove(Keys(KeyIndex))
Next
Application.Lock
End Sub
Any suggestions please would be welcome......I'm stumped with this one.
Thanks,
Scott.
|
 |
 |
Tuong Do
|
| Posted: 10/25/2004, 4:52 PM |
|
I have similar problem when moving to IIS6
It does not work with any asp page and it does work with html.
The problem is resolved by getting rids of the global.asp file or fixxing
the error in the global.asp file. If there is something wrong in the
global.asp file it will not serve any asp page.
"S_A" <S_A@forum.codecharge> wrote in message
news:6417d2af275bfd@news.codecharge.com...
> Hi,
>
> Does anyone know just what cache.asp does? I'm running an ASP / MSACCESS /
> IIS
> 6.0 site on a shared hosting plan and it keeps bombing out. The thing is
> the
> index page does not even display - I just get an error 500 - there is no
> database component on this page - just an included header and footer.
> Of course, none of the other pages work either 
>
> The reason I ask about cache.asp is that my ISP tells me that I have an
> error
> at line 24 - and they think that's why the site is down.
>
> Here is a code chunk with the offending line marked: -
>
> '
> ' Release all cached elements from the cache
> Sub Clear()
> Dim Key, Keys, KeyIndex
> Dim KeysString : KeysString = ""
> For Each Key in Application.Contents
> If Left(Key, PREFIX_LENGTH) = PREFIX Then KeysString = KeysString & "/"
> &
> Key
> Next ..............................................OFFENDING LINE NO 24
> Keys = Split(KeysString, "/")
> Application.Unlock
> For KeyIndex = 1 To UBound(Keys)
> Application.Contents.Remove(Keys(KeyIndex))
> Next
> Application.Lock
> End Sub
>
>
>
> Any suggestions please would be welcome......I'm stumped with this one.
>
>
> Thanks,
>
> Scott.
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
DonB
|
| Posted: 10/26/2004, 5:57 AM |
|
you might be getting hung up due to changes that IIS6 made in the default
IIS behavior. One common problem is
http://support.microsoft.com/default.aspx?scid=kb;en-us;332117
See also:
http://forums.codecharge.com/posts.php?post_id=37769&s_...+Path&s_using=3
Although you don't see the error 0131, this could be related.
--
DonB
http://www.gotodon.com/ccbth
"S_A" <S_A@forum.codecharge> wrote in message
news:6417d2af275bfd@news.codecharge.com...
> Hi,
>
> Does anyone know just what cache.asp does? I'm running an ASP / MSACCESS /
IIS
> 6.0 site on a shared hosting plan and it keeps bombing out. The thing is
the
> index page does not even display - I just get an error 500 - there is no
> database component on this page - just an included header and footer.
> Of course, none of the other pages work either 
>
> The reason I ask about cache.asp is that my ISP tells me that I have an
error
> at line 24 - and they think that's why the site is down.
>
> Here is a code chunk with the offending line marked: -
>
> '
> ' Release all cached elements from the cache
> Sub Clear()
> Dim Key, Keys, KeyIndex
> Dim KeysString : KeysString = ""
> For Each Key in Application.Contents
> If Left(Key, PREFIX_LENGTH) = PREFIX Then KeysString = KeysString &
"/" &
> Key
> Next ..............................................OFFENDING LINE NO 24
> Keys = Split(KeysString, "/")
> Application.Unlock
> For KeyIndex = 1 To UBound(Keys)
> Application.Contents.Remove(Keys(KeyIndex))
> Next
> Application.Lock
> End Sub
>
>
>
> Any suggestions please would be welcome......I'm stumped with this one.
>
>
> Thanks,
>
> Scott.
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|