Re: goofy global.asa

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



If your Application variables are "evaporating" occasionally,
you can reset them, and make sure they do exist, by using an include file:

Include this "test_app_vars.inc" in your pages :

<% language="vbscript" RUNAT=SERVER %>
<%
If Application("str1") = "" Then
'this runs f the variables have been lost
Application.Lock 'Lock App while you reset
Application("str1") = "whatever that variable is"
Application("str2") = "whatever"
Application("str3") = "something else"
Application.Unlock
End If
%>

That will assure you that even if the variables are "lost", by anything your
provider has misconfigured, your variables will be available for your use
in any page in which you include "test_app_vars.inc".




Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Giorgio" <dac@xxxxx> wrote in message news:pIREe.3596$2U1.387230@xxxxxxxxxxxxxxx
> Hi all,
> i have a problem with a website where i use asp 3 and a global.asa in the
> root.
> In global.asa i use some aaplication variables which contains strings, such
> as: Application("str1")="text".
> Sometimes (even if i dont change the code) application variables becomes
> null
> To solve the problem i delete from server my global.asa and upload new one
> (with same code inside)
> Provider says their servers are all right
> how can i fix it?
>
> Thanx
>
>
>


.



Relevant Pages

  • Re: i lost my pass word, how do i reset it?
    ... Contact your provider. ... Bob Lehmann ... > i lost my pass word, how do i reset it? ...
    (microsoft.public.frontpage.client)
  • HIT COUNTER
    ... The host changed the files to another server, ... in so doing lost the number of hits. ... Component Properties and checked the box to reset the ...
    (microsoft.public.frontpage.client)
  • Re: Cant access companyweb or other website on IIS after installi
    ... Let's re-run CEICW to reset the network configuration. ... How to configure Internet access in Windows Small Business Server 2003 ... suggest you try it again and reset all the settings. ... Install MBExplorer by installing IIS 6 Resource Kit Tools: ...
    (microsoft.public.windows.server.sbs)
  • Re: FOR A SKILLED IT EXPERT - WIN2K SERVER - DOMAIN CONTROLLER
    ... Windows Server 2003 one can, but not from a safe mode boot). ... boots up on cached profile only) The interactive logon problem has applied ... manual security reset. ... If you had not tried the reset we could have pulled you out of this, ...
    (microsoft.public.win2000.security)
  • RE: Offline Address Book error on send/receive
    ... Hi Jenny...I've done this reset successfully on a test server so I will be ... The folders are system folders. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)