[python-win32] Repost: Classic ASP in IIS with Python - 500 ServerError
Roger Upole
rupole at hotmail.com
Mon Mar 7 01:58:42 CET 2011
"Roger Upole" <rupole at hotmail.com> wrote in message news:...
> J.D. Main wrote:
>> (repost of previous message apparently HTML'd by my mailer...sorry)
>>
>> Hello,
>> I have been hunting for a solution to this one for some time. I've
>> already tried all the easy stuff. I have IIS 5 on a WinXP Pro machine.
>> I recently posted this to the Python WEB sig - apparently not many windows
>> users on that
>> list.
>> I can run python scripts as CGI but not as ASP. All I get is:
>>
>> HTTP/1.1 500 Server Error
>> (nothing else - no other errors or explanation - seriously)
>>
>> I have tried:
>>
>> 1. Reinstalling Python (v2.7 from ActiveState)
>> 2. Reinstalling IIS
>> 3. Running pyscript.py from "site-packages\win32comext\axscript\client"
>> 4. I have "friendly errors" turned off in IE
>> 5. ASP does work with VB Scripts
>>
>> Here is the most basic ASP page I'm trying to run:
>>
>> <%@LANGUAGE=Python%>
>> <html>
>> <body>
>> <%
>> response.write("Hello World!")
>> %>
>> </body>
>> </html>
>>
>> Does anybody have any ideas? This is really getting annoying and I can't
>> find a solution. Other people have complained of this and I've seen no
>> solution.
>>
>> Thanks.
>> J.D.
>
> Try registering it in debug mode, by passing --debug to pyscript.py.
> The trace collector in Pythonwin should show any error msgs
> generated by Python (assuming it gets as far as loading Python).
>
> Roger
>
Just noticed the lowercase "response". Python is case sensitive, try
Response.Write instead.
Roger
More information about the python-win32
mailing list