CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Cache.asp?

Print topic Send  topic

Author Message
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.
View profile  Send private message
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/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.