asp script engine registrition

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jianchiwei

    asp script engine registrition

    question:
    I run
    c:\python23\Lib \site-packages\win32c omext\axscript\ client\pyscript .py
    and it told me
    Registered: Python
    Registration of Python ActiveX Scripting Engine complete.

    But, when I run a asp script

    <%@LANGUAGE=Pyt hon%>
    <HTML>
    <head></head>
    <body>
    <h1>Python - Test</h1>

    </body>
    </html>

    I still get
    HTTP/1.1 500 Server Error
    caused by the first line of code "<%@LANGUAGE=Py thon%>".
    It seems to me that python script engine is not correctly registered.
    Could someone help me on this please?
    Thanks
    J.W.




  • Tom

    #2
    Re: asp script engine registrition

    jianchiwei wrote...
    [color=blue]
    > question:
    > I run
    > c:\python23\Lib \site-packages\win32c omext\axscript\ client\pyscript .py
    > and it told me
    > Registered: Python
    > Registration of Python ActiveX Scripting Engine complete.
    >
    > But, when I run a asp script
    >
    > <%@LANGUAGE=Pyt hon%>
    > <HTML>[/color]


    <% @LANGUAGE="Pyth on" %>

    ??


    [color=blue]
    > I still get
    > HTTP/1.1 500 Server Error
    > caused by the first line of code "<%@LANGUAGE=Py thon%>".
    > It seems to me that python script engine is not correctly registered.
    > Could someone help me on this please?
    > Thanks
    > J.W.
    >
    >
    >
    >[/color]

    Comment

    • Mark Hammond

      #3
      Re: asp script engine registrition

      jianchiwei wrote:[color=blue]
      > question:
      > I run
      > c:\python23\Lib \site-packages\win32c omext\axscript\ client\pyscript .py
      > and it told me
      > Registered: Python
      > Registration of Python ActiveX Scripting Engine complete.
      >
      > But, when I run a asp script
      >
      > <%@LANGUAGE=Pyt hon%>
      > <HTML>
      > <head></head>
      > <body>
      > <h1>Python - Test</h1>
      >
      > </body>
      > </html>
      >
      > I still get
      > HTTP/1.1 500 Server Error
      > caused by the first line of code "<%@LANGUAGE=Py thon%>".
      > It seems to me that python script engine is not correctly registered.
      > Could someone help me on this please?[/color]

      Do the sample .asp files work? If so, then you should be able to work
      out what is wrong by comparing them. If not, try registering the engine
      with "--debug" on the command-line, then use Pythonwin's "Tools->Remote
      Trace Collector" - hopefully you will see a traceback with the specific
      problem.

      Mark.

      Comment

      Working...