View previous topic :: View next topic |
Author |
Message |
jayesh_j_patel -
Joined: 28 Jun 2004 Posts: 4
|
Posted: Mon Jun 28, 2004 5:48 pm Post subject: Error 500 (internal server error) |
|
|
I get error 500 when I run this script.
I set activeHTML directory aliases as per your reply. But still it doesn't work.
<%
Set fs = CreateObject("Scripting.FileSystemObject")
Set rs = fs.OpenTextFile(Server.MapPath("Counter.txt"), 1, 0)
...
rs.Close
rs = nothing
fs = nothing
%>
Please tell mw what I am doing wrong.
Thanks,
JP |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Jun 29, 2004 3:47 pm Post subject: Re: Error 500 (internal server error) |
|
|
jayesh_j_patel,
Open a command line window (or select Start>Execute and enter cmd or command and press Enter). We will assume that the full path of your script is C:\Program Files\Abyss Web Server\htdocs\test.asp . Type the
following command (and press Enter):
C:\Program Files\ActiveHTML\ahtml.exe C:\Program Files\Abyss Web
Server\htdocs\test.asp
What is the result you get? Do you have an error message? If so, please send the resulting output. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
jayesh_j_patel -
Joined: 28 Jun 2004 Posts: 4
|
Posted: Tue Jun 29, 2004 4:45 pm Post subject: |
|
|
When I type the command
C:\Program Files\ActiveHtml\Ahtml.exe C:\Program Files\Abyss Web Server\HtDocs\Counter.asp
Where counter.asp is my script file. Windows gives error that C:\Program is not recognized commad.
So than I typed with quotaion mark like:
"C:\Program Files\ActiveHtml\Ahtml.exe" C:\Program Files\Abyss Web Server\HtDocs\Counter.asp
------> I got no error message or not even any text output. note that I have not give script file name in quotation mark.
Now I typed like all in qutotaion mark:
"C:\Program Files\ActiveHtml\Ahtml.exe" "C:\Program Files\Abyss Web Server\HtDocs\Counter.asp"
It gives wiered kind of error now:
<font face="arial" size =2>
<p>Microsoft VBScript runtime error</font>- <font face="aria;" size=2>Error '800a0035' </font>
<p>
<font face="arial" size=2>File not found</font>
<p>
<font face="arial" size=2>/counter.asp"</font><font face="arial size=2">, line 3</font>
Funny thing is in my counter.asp has no where <font>. It is exact like this nothing missing or nothing extra:
<%
set fs = Server.CreateObject("Scripting.FileSystemObject")
set rs = fs.OpenTextFile(Server.MapPath("Counter.txt"), 1, 0)
count = rs.ReadLine
rs.Close
set rs = nothing
set fs = nothing
%>
<html><body>
Welcome <br>
You are the visitor number: <%=count%>
</body></html>
I don't know what and where is the problem.
Thanks for your reply,
JP |
|
Back to top |
|
|
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Tue Jun 29, 2004 7:17 pm Post subject: |
|
|
What operating system are you using? _________________ Bienvenidos! |
|
Back to top |
|
|
jayesh_j_patel -
Joined: 28 Jun 2004 Posts: 4
|
Posted: Tue Jun 29, 2004 7:24 pm Post subject: |
|
|
I hace Windows XP home edition
JP |
|
Back to top |
|
|
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Tue Jun 29, 2004 7:32 pm Post subject: |
|
|
I was thinking this might not be necessary on an XP machine, but mine seems to have to do it also. Use 8-bit file extensions:
C:\Progra~1\Activehtml\Ahtml.exe C:\Progra~1\AbyssW~1\HtDocs\Counter.asp _________________ Bienvenidos! |
|
Back to top |
|
|
jayesh_j_patel -
Joined: 28 Jun 2004 Posts: 4
|
Posted: Tue Jun 29, 2004 7:43 pm Post subject: |
|
|
I tried this, it gives same error which I mentioned in previous long posting.
Thanks for you interest,
JP |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jul 01, 2004 1:42 pm Post subject: |
|
|
jayesh_j_patel,
Quote: |
"C:\Program Files\ActiveHtml\Ahtml.exe" "C:\Program Files\Abyss Web Server\HtDocs\Counter.asp"
It gives wiered kind of error now:
Code: | <font face="arial" size =2>
<p>Microsoft VBScript runtime error</font>- <font face="aria;" size=2>Error '800a0035' </font>
<p>
<font face="arial" size=2>File not found</font>
<p>
<font face="arial" size=2>/counter.asp"</font><font face="arial size=2">, line 3</font> |
|
OK. This report explains what the error is. It is an error report from ASP stating that a file was not found. Our guess is that it is related to the line:
Code: | set rs = fs.OpenTextFile(Server.MapPath("Counter.txt"), 1, 0) |
We suggest to change it to:
Code: | set rs = fs.OpenTextFile("C:\Program Files\Abyss Web Server\htdocs\Counter.txt", 1, 0) |
In other words, replace [bServer.MapPath("Counter.txt")[/b] with the full path in your hard drive of the counter.txt file.
Does it work now?[/quote] _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
lunapero -
Joined: 07 Jun 2004 Posts: 1
|
Posted: Tue Jul 06, 2004 6:58 pm Post subject: Potential virus software problem |
|
|
Be sure to disable any script blocking in virus protection software. I know that norton will cause this very error. good luck. |
|
Back to top |
|
|
sebastianet -
Joined: 24 Jan 2006 Posts: 4
|
Posted: Tue Jan 24, 2006 3:03 pm Post subject: Re: Error 500 (internal server error) |
|
|
Hi all ! I have a very similar problem ...
1) When runing AHTML from Abyss on a XP,
I get "500 0" on the browser screen.
when it is pointing to "http://127.0.0.1/sebas/one.asp"
The real path to file is
... "C:\Program Files\Abyss Web Server\htdocs\sebas"
2) When I run from Command Line :
C:\Program Files\seliSoft\ActiveHTML> ahtml c:\temp\IIS\dos.asp
I receive ...
500: 0
and "DOS.ASP" file has only this 3 lines :
<%
Response.Write "This is a test ASP page."
%>
I did find "ACCESS.LOG" in Abyss, and it has
127.0.0.1 - - [24/Jan/2006:14:51:01 +0100] "GET /sebas/dos.asp HTTP/1.1" 500 6 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; en) Opera 8.50"
So, the error is "500" and a "6" ...
500 = internal error
6 = ???
=================================================
What hhave I done wrong ?
Sebastian. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jan 25, 2006 2:16 pm Post subject: Re: Error 500 (internal server error) |
|
|
sebastianet wrote: | 127.0.0.1 - - [24/Jan/2006:14:51:01 +0100] "GET /sebas/dos.asp HTTP/1.1" 500 6 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; en) Opera 8.50"
So, the error is "500" and a "6" ...
500 = internal error
6 = ???
=================================================
What hhave I done wrong ?
Sebastian. |
6 is not related to the error. It is the count of characters that were sent in the page (the error page).
Error 500 means that ActiveHTML has problems starting. Do you confirm that you get 500: 0 when you execute it from the command line directly? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
sebastianet -
Joined: 24 Jan 2006 Posts: 4
|
Posted: Wed Jan 25, 2006 2:39 pm Post subject: |
|
|
Positive (as far as I can see ...... :-)))))
Here is a Cut And Paste
right from the DOS session :
+++++++++++++++++
C:\Program Files\seliSoft\ActiveHTML>dir *.exe
Volume in drive C has no label.
Volume Serial Number is FCE7-4406
Directory of C:\Program Files\seliSoft\ActiveHTML
03/09/2005 01:02 862.544 AHTML.exe
03/09/2005 01:02 366.928 AHTMLCFG.exe
03/09/2005 01:02 489.808 CDONTS.exe
03/09/2005 01:02 7.952 htimage.exe
03/09/2005 01:02 6.416 imagemap.exe
24/05/2001 13:59 162.304 UnWise.exe
6 File(s) 1.895.952 bytes
0 Dir(s) 415.178.752 bytes free
C:\Program Files\seliSoft\ActiveHTML>.\AHTML.exe C:\TEMP\IIS\DOS.ASP
500: 0
C:\Program Files\seliSoft\ActiveHTML>
++++++++++++++++
and here is DOS.ASP "type" output :
++++++++++++++++
C:\TEMP\IIS>type dos.asp
<%
Response.Write "This is a test ASP page."
%>
C:\TEMP\IIS>
++++++++++++++++ |
|
Back to top |
|
|
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Wed Jan 25, 2006 3:37 pm Post subject: |
|
|
IIS? |
|
Back to top |
|
|
sebastianet -
Joined: 24 Jan 2006 Posts: 4
|
Posted: Thu Jan 26, 2006 1:09 am Post subject: |
|
|
Yes, I had IIS few days before ...
All I want is to run some ASP pages ....
to display MQ counters from Guindous Registry, in fact.
I went crazy with IIS, so I changed to Abyss,
but the ASP "source" files are still in the IIS directory,
if you dont mind ...
;-))))) |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jan 26, 2006 3:21 pm Post subject: |
|
|
500: 0 is really a weird output. We suggest contact SeliSoft (the makers of ActiveHTML) to ask them for support about this. May be it's a bug with ActiveHTML.
sebastianet wrote: | Yes, I had IIS few days before ...
All I want is to run some ASP pages ....
to display MQ counters from Guindous Registry, in fact. |
You can also use PHP or CScript (which is free, available with Windows, and has almost an ASP similar syntax) if you want to access the registry or any Windows counter. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
sebastianet -
Joined: 24 Jan 2006 Posts: 4
|
Posted: Fri Jan 27, 2006 4:27 pm Post subject: |
|
|
I just can't believe this environment does not work ...
It's a brand new ABYSS ....
I want to open a very simple ASP page ...
And it does not work ?
NOBODY DID OPEN AN ASP PAGE USING ABYSS AND SELISOFT ???
OK, i'll contact them and post any (interesting) news ....
Bets luck. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Jan 28, 2006 1:53 pm Post subject: |
|
|
sebastianet,
Each computer is different. So you can have surprises even with a standard installation of ActiveHTML.
ActiveHTML uses system DLLs which may be not well installed on your computer (or not up to date). Some antivirus software may cause trouble when using it in conjunction with ActiveHTML (in the past many users reported that Norton Antivirus prevented ActiveHTML from working correctly). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|