Server Error Messages - Posted (2031 Views)
Senior Member
MaGraham
Posts: 1297
1297
Below are some error messages I am receiving after being moved to a new server along with some replies from hosting. I am trying to get them to see that an image uploaded last week prior to the move will not upload now. And, they are blaming the Snitz files. I've explained that my files worked fine prior to the move but after their persistence in my asking the Snitz developers, that's what I am doing. What should I tell these guys?!

All of these error messages were received when trying to upload a 1.5mb file. However; I received the same error with a 875kb file. A small 35kb file loads instantly. (The server timeout for attachments is set at the default 9900 seconds.)


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Hosting reply: I tried changing the 'maxRequestLength' and 'executionTimeout' for your domain in the web.config file.

However, this did not make any changes to the issue.
____________________


The connection was reset

The connection to the server was reset while the page was loading.

Hosting reply: The connection time-out error that you are receiving is not due to upload limit.
This happens because the script tries to upload the image and it waits for a certain period of time and the script itself times out.
I have increased the connection time-out value of asp pages for your domain to 300 seconds [5 minutes ].
However this didn't fix the issue. I have looked into the code of your website and I could see several values inside the code which is the cause of the timeout.

_______________________________


Another hosting reply in regard to trying to upload the same image: Currently we are facing a "Connection timed out" error instead of an 'Internal server error' while uploading files.

I have edited the website configuration file by adding the 'sessionState timeout' and 'maxRequestLength' similar to that mentioned in the following URL.

http://stackoverflow.com/questions/6435409/error-101-neterr-connection-reset-the-connection-was-reset

However, these changes have not made any changes to the issue. So I have reverted back all the changes.

Also, as mentioned by our previous tech, I noticed so many codes related to the 'Server TimeOut' in the file "outputFile.asp".

Please discuss the same with the forum software developer as we have limited support for such issues. Moreover, the forum software developer could assist you better than us for such issues.

___________________


Another error message when trying to upload the same image. It took TEN minutes to receive this error message:

The connection was reset

The connection to the server was reset while the page was loading.
The site could be temporarily unavailable or too busy. Try again in a few moments.

They suggested I allow them to move me to a new server because they could never get the email to work for the forum and claimed this new server had better ASP support. Well, the email works but now all of this!

Other than changing hosting, any other suggestions?

"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
Semi-random question, did the permissions get moved as well? Theoretically if it was a permissions problem it would be giving you a permissions-related error message, but sometimes it's worth investigating other problem areas.
Posted
Senior Member
MaGraham
Posts: 1297
1297

If the directory wasn't given the proper permissions no files could be uploaded, right? Very small files can be uploaded without problems.

"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
That's correct - if the directory wasn't given the proper permissions, no files would be uploaded.
How small is "very small", and have you tried different sizes to figure out where the script stops uploading?
Posted
Forum Admin
HuwR
Posts: 20611
20611
moved here as forum does not support file uploading so not strictly a forum problem. It is definitely a server issue, seems your hosts don't know a lot about hosting ASP either, making changes to web.config is related to ASP.Net and would have no effect whatsoever on a classic asp site
Posted
Senior Member
MaGraham
Posts: 1297
1297

I did try to determine at what point the script stops uploading. However; I am now receiving the following error message, at times, when just trying to refresh whatever page I happen to be on while on one of the forums. So, obviously, it's not limited to times when uploading an image.

And then, at times, it's an "Internal Server" error message I receive. I always (since the move) get the "Internal Server" error message when I am in the profile area and click to upload an avatar.


The connection has timed out

The server is taking too long to respond.
The site could be temporarily unavailable or too busy. Try again in a few moments.


All of my files worked fine prior to hosting moving me to the new server. So, don't you think that means it's definitely a hosting problem with the new server?

"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Posted
Forum Admin
HuwR
Posts: 20611
20611
Do you know what Operating system/IIS version they are hosting you on? as the fix is different across versions of IIS, but basically they need to set the maxRequest size I think it is called maxRequestEntityAllowed in IIS7 metabase
Posted
Forum Admin
HuwR
Posts: 20611
20611
All of my files worked fine prior to hosting moving me to the new server. So, don't you think that means it's definitely a hosting problem with the new server?
Yes, absolutely this is a server/iis configuration problem.
Posted
Forum Admin
HuwR
Posts: 20611
20611
However this didn't fix the issue. I have looked into the code of your website and I could see several values inside the code which is the cause of the timeout.
Would be intereseted to see what they think is the cause smile
Posted
Senior Member
MaGraham
Posts: 1297
1297
Originally posted by HuwR Would be interested to see what they think is the cause smile
I don't think they have a clue, Huw! sad
So very frustrating to say the least!

"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Posted
Advanced Member
Carefree
Posts: 4224
4224
The issue is that the FileSystemObject is not enabled on the server. The web host is incompetent. I told them (through Ma) precisely what was necessary to enable it - and they claimed to have followed the instructions -- but it's not working. To test this, I wrote the following little program and instructions for her to run. When she ran it, guess what? She still got the "Internal Server Error (500)" page result.
The FSO System stands for "File System Object" - it's what allows you to programmatically read/write files on a hard drive over the web. Edit the first line of code below to reflect a folder in your forum with write permission granted to the IUSR account, save the code as "fsotest.asp" to your root forum folder, then run it from your browser. If it creates a link which opens a new text file saying "Test File" on one line, then the FSO system is working. If you still get the "Internal Server Error (500) message, then the FSO system is NOT working.
Very simply - here's how it works:

Line 1 defines the folder and file name you wish to create or write to. Line 2 tells it to open access to the file read/write utility in IIS (provided that it's enabled and the directory has write permissions for the IUSR account). Line 3 defines the file path name as related to the physical location on the hard drive where the forum folder is stored. Line 4 checks if the file already exists. Line 5 -7 tells it to either append to an existing file or create a new one, depending on the result of line 4. Line 8 tells it to write a single line of text to that file. Lines 9-11 close access to the file and to the file read/write utility. Line 12 creates a hyperlink to the new file to check if it worked (assuming that error reporting to the browser is disabled, you'll need a method of verification).

Code:
<%
strPath="uploads/testfile.txt"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
FilePath=Server.Mappath(strPath)
If objFSO.FileExists(FilePath) Then
Set objTextStream = objFSO.OpenTextFile(FilePath, 8) ' Appending
Else
Set objTextStream = objFSO.OpenTextFile(FilePath, 2) ' Writing (Creation)
End If
objTextStream.WriteLine("This is a test.")
objTextStream.Close
Set objTextStream = Nothing
Set objFSO = Nothing
Response.Write "<a href=""" & strPath & """>Test File</a>"
%>
You Must enter a message