Solved

Global.asa problem

Posted on 2003-11-03
16
504 Views
Last Modified: 2012-06-21
Recently I configured an asp chat script.
This chat is well-known, conquerchat.

Everything was ok, until I discovered someday that my site was offline!
Nobody could see the home page. The error message in browser was: Http /1.1 application failed.
I searched google, I had a conversation with my host provider and then I decide to rename global.asa file, in order not to be loaded. Actually, I deactivated it.

Then, the site was ok again. Online.

Searching google, I found some pages that told about bad-written global.asa.
My global.asa has not even a single line written from me. It consists from 2 parts of code, one for counting active users, the other for conquerchat.

My host provider said global.asa often does lots of such problems. So they said it was better not to use global.asa in my site.
Until now, I had no sign of telling me lies. It is the most expensive and reliable host company in my country.

I sent a message in the support forum of conquerchat about this, but moderator told, global.asa has not such problems. They blamed my host provider.

I must say that host company, at time I had my site offline, they  told me  that they had my site in multiple servers in order of having better performance, generally speaking. But, specific for my site, because I use access mdb as database, is better to move it in a single server. So, the moved it, this time we had the problem (site offline). I don’t know if this is related but you can judge it.

So, I am stacked with my problem: chat not work, active users not counted, and the question is: where is the truth?
Does host company told the truth? Is something happened that I don’t know and someone don’t want to know?
Is the blame at global.asa?
Does the chat make this trouble, with  it’s part of code in global.asa?
Does the counting of active users make the problem, with it’s part of code in global.asa?
Is something wrong with host provider?
What’s going on?
What to deactivate and what to activate and make online, for sure?
I will not risk anymore any failures in my site, so every step must be well considered.

Thanks in advance.

Here is the code of global.asa:

<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
' Set our user count to 0 when we start the server
Application("ActiveUsers") = 0
End Sub
Sub Session_OnStart
' Change Session Timeout to 20 minutes (if you need to)
Session.Timeout = 1
' Set a Session Start Time
' This is only important to assure we start a session
Session("Start") = Now
' Increase the active visitors count when we start the session
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") + 1
Application.UnLock
End Sub
Sub Session_OnEnd
' Decrease the active visitors count when the session ends.
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") - 1
Application.UnLock
End Sub
</SCRIPT>


<OBJECT
RUNAT="Server"
SCOPE="Application"
ID="conquerChatUsers"
PROGID="Scripting.Dictionary">
</OBJECT>

<OBJECT
RUNAT="Server"
SCOPE="Application"
ID="conquerChatRooms"
PROGID="Scripting.Dictionary">
</OBJECT>

<OBJECT
RUNAT="Server"
SCOPE="Application"
ID="conquerChatMessages"
PROGID="Scripting.Dictionary">
</OBJECT>


Here is the forum message
http://www.theill.com/snitzforum/topic.asp?TOPIC_ID=1385
0
Comment
Question by:indy1975
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 8
16 Comments
 

Expert Comment

by:alian_louis
ID: 9674527
First of all i'd like to say that yu should have mentioned which host company you have.(maybe i missed that). It is true that global.asa causes unknown and scary problems. Like Brinkster that i used for a while did not support that because of the problems. If you want to i have the online user script in global.asa that works damn good, but not with brinkster cause they've blocked that function. So i say it can be a spooki problem and maybe it is in your script. So i could send you mine. My E-mail is <e-mail deleted rdivilbiss>
0
 

Author Comment

by:indy1975
ID: 9677331
Thanks for your response. I tried to send you email at louis-sexig@hotmail.com , as you wrote, but hotmail says it does not exist such mail address. Is it correct?
I did not mention the hosting company because it is unlike for someone to know it, becasuse i host it in Greece. The company is www.hellasnet.gr, and not only pay for this, but it is also

expensive.
Almost all the best companies of Greece are hosted there. They have excellent helpdesk, and they are extremely helpfull.
So, you suggest it is a problem surely of global.asa.
This is a great step for me to discover the solution about this strange problem.

Do you believe the problem became from conquerchat?              Or the active users?

Anyway, i would appreciate if you could send me your online user script (with an associated txt if it is possible, so, beyond global.asa, how i can see in a page these online active users).
You never had such a problem as mine with your global.asa online users script, did you?
My email for sending the script, is costantinh@hotmail.com

Thanks in advance
0
 

Expert Comment

by:alian_louis
ID: 9677373
I kind of wrote my email wrong, but anyway i've sent the files to your mail. You should have by the time you read this. Place booth files in the root and then add       <%= Application("active") %>      whereever you want it to show the ctive users.
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 

Author Comment

by:indy1975
ID: 9677926
Thanks for your response.
Please take a look at the global.asa code i displayed in my fisrt message.
In the global.asa you sent me something different? I can't see almost any difference, as far as it concerns the part of code that count active users.

Anyway, thanks for the files, but please respond to me telling me if you ever had a problem like mine, using your global.asa that you sent me.
I 'm very scared about having my site offline once again in the near future because of global.asa problems.
I need count online users, but only if this is safe. How many months(or years) do you have this global.asa in use? Everything was ok? Ever?

I am waiting your response
Thanks in advance
0
 

Expert Comment

by:alian_louis
ID: 9680496
This global.asa has never shown any problems. It has been running for 2 years.
0
 

Author Comment

by:indy1975
ID: 9680917
Thank you very much.
I will upload these files, so i can see again online users.
0
 

Expert Comment

by:alian_louis
ID: 9680940
always a pleasure :)
0
 

Expert Comment

by:alian_louis
ID: 9681765
well I guess you could give me the points now =). Or maybe I dont deserve them?
0
 

Author Comment

by:indy1975
ID: 9681828
Of course you deserve them.
It is true i am new to experts-exchange, so it's difficult to remeber or to know what i have to do.
I believe i will not have problem with this global.asa anymore.

But, by this time we speak, i had a very serious problem, just happened few minutes ago: my site is offline.
The internet explorer error:HTTP/1.1 New Application Failed

There is no technical support at this time in the hosting company (now is evening), and i live a very bad experience.
Of course i will contact them in the morning, but i wonder, and if you can help me do it, what causes this serious trouble?
Every minute my site is offline, i get mad!
What i am doing wrong?
In some pages, i read this is common problem for asp. But what can I do? Just be patient and pray not to happen to my site?
Is something i must change or do with my site in order to be online again?

Please, help me to this serious problem.
0
 

Author Comment

by:indy1975
ID: 9681864
I forgot to say that some(a few though) http proxies, still see the site with no problem!
But the 95% of users, me indeed, cannot see it.

0
 

Expert Comment

by:alian_louis
ID: 9681894
I am sure that this has nothing to do with the global.asa. Since you said your host is a well known an respected company this cant be their fault either. I think it has to do with the way you handle asp and html, cause this almost similar problem happeng to a friend and he solved it by not mixing html with asp. He said that when mixing them the browser have to switch betwen reading asp and html and that causes heavy problems. I can't back this information up cause this a friends words. I would guess that is the problem.
0
 

Author Comment

by:indy1975
ID: 9681987
Can you please explain me what do you mean not to mix asp and html?
My index page is a typical page made with dreamweaver. It's asp,but of course, it has lot's of tables etc, html.
It it better separate them? How? With include files asp?
Is't' it my page a normal one? It's the first time i hear about this.
I don't write code by hand, i let dreamweaver mx 2004 do this.
So what do you propose me to do?

I can't explain either how these few proxies still display the site.
But it's also strange and i tell it to you if this can help you tell me some advice, when the index.asp not displayed, my asp page which i use as a virtual controlpanel of my site(insert records, update etc), also not running.

What do you think about these?
What i have to do?
0
 

Expert Comment

by:alian_louis
ID: 9682095
I cant really explain how it works with seperating the asp and html because i've never done it myself. Still I have to say that that fact is unsecure.

This could be your host's that can't handle gloabal.asa. You said alot of big companis uses that host but think about it how many of those uses global.asa.

Try contacting your host and demanding a resonable explanatiion and if they blame it on the global.asa then ask them if they have the correct version of it and if they can send it to you. That's what i would do ;).
0
 

Author Comment

by:indy1975
ID: 9682270
But, this now happened without global.asa.
And by this time we speak, after four hours being offline, the site suddenly is online again.
I know, there is nobody to the company, to do something in iis, so i could tell they take action.
So, why the site some hours is offline and then, without altering nothing (neither me, or helpdesk)?
0
 

Accepted Solution

by:
alian_louis earned 125 total points
ID: 9682295
now it is obvious that the host has a problem maybe for all their customers or just for you.
0
 

Author Comment

by:indy1975
ID: 9685164
Thank you for your help, i 'll try your global.asa and i believe in what you say, no problems from it for years!
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
xss alert in domino url 9 57
What is the optimum percentage to save images for webs. 4 33
Designing forms 3 45
Adding a countdown to HTA 12 99
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question