Print Page | Close Window

error 'ASP 0156 : 80004005'

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=22513
Printed Date: 08 April 2026 at 6:34am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: error 'ASP 0156 : 80004005'
Posted By: agronoy
Subject: error 'ASP 0156 : 80004005'
Date Posted: 25 January 2007 at 1:46pm
Hi.

Server Error in Forum Application
An error has occured while connecting to the database.
Please contact the forum administrator.

Support Error Code:- err_mySQL_db_connection
File Name:- common.asp

Error details:-
Microsoft OLE DB Provider for ODBC Drivers
[MySQL][ODBC 3.51 Driver]Too many connections

Response object error 'ASP 0156 : 80004005'

Header Error

/bonsaisraeli/functions/functions_session_data.asp, line 292

The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.

What does it mean?
Thanks.




Replies:
Posted By: agronoy
Date Posted: 27 January 2007 at 10:58am
Ermm


Posted By: agronoy
Date Posted: 28 January 2007 at 8:00pm
Confused
In my forum it never happen.... a question without any reply.
I'm really confused about the support policy of wwf software.


Posted By: gibbo
Date Posted: 28 January 2007 at 10:57pm
I don't know about the first error as I don't use (or even know) mySQL so I can't help you on that one.
 
But for the second error, I don't think that this should happen as there is nothing on line 292 that could cause a header error.
 
The contents of functions_session_data.asp (lines 280-295) is:

280:   'SQL to update the database with the new session
...
290:   strDatabaseDateFunction & ", " & _
291:   "';' " & _
292:   ");" <--
293:   
294:   'Set error trapping
295:   On Error Resume Next
 
 
Try reuploading your files again incase your files have gotten corrupted.


-------------
I reject your reality and substitute my own. – Adam Savage, Mythbusters


Posted By: agronoy
Date Posted: 29 January 2007 at 9:43am
Thank you gibbo.
I have tried almost every trick i know.
The problem occurs on&off not constantly.
If i delet all my temporary internet file and cookies. somtimes it's help but not always.
Could it be a hosting server problem?
 


Posted By: agronoy
Date Posted: 29 January 2007 at 9:52am
My lines 291+292 are:

    'Create a cookie and querystring with the session ID
        Response.Cookies(strCookieName)("SID") = strNewSessionID



Posted By: gibbo
Date Posted: 29 January 2007 at 10:42am

Do both errors happen at the same time?



-------------
I reject your reality and substitute my own. – Adam Savage, Mythbusters


Posted By: agronoy
Date Posted: 29 January 2007 at 11:45am
yes.


Posted By: dj air
Date Posted: 29 January 2007 at 1:19pm
hi,
 
the MySQL error sounds like the host hasnt got enough connections open avalible for the MySQL Db
 
this could be an overloaded server and to many hits as the forum is optimised for performance.


Posted By: gibbo
Date Posted: 29 January 2007 at 1:38pm
For some reason, when the forum generates its error (about the mysql error), it isn't ending the execution of the page like it is supposedand continues execution of the page and since something has already been written to the page, this generates the second error.
 
Is the setting for the response.buffer set to false in any of your pages as this sounds like the cause of the error for the headers error


-------------
I reject your reality and substitute my own. – Adam Savage, Mythbusters


Posted By: Ali Bilgrami
Date Posted: 29 January 2007 at 1:46pm
well yeah...just put this at the top
 
<%Response.Buffer = True%>
 
the header problem should be solved


-------------
Lets!


Posted By: agronoy
Date Posted: 29 January 2007 at 5:37pm
Thank you gentelmen.

were should i put this line? which file?

common.asp ?
header ?
/functions/functions_session_data.asp ?

Thanks again.





Posted By: Ali Bilgrami
Date Posted: 29 January 2007 at 6:46pm
header

-------------
Lets!


Posted By: agronoy
Date Posted: 29 January 2007 at 6:51pm
Thumbs%20Up



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net