473,545 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.


Jul 18 '05 #1
2 2313
Tom
jianchiwei wrote...
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>

<% @LANGUAGE="Pyth on" %>

??
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.

Jul 18 '05 #2
jianchiwei wrote:
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?


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.
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3065
by: Vince C. | last post by:
Hi. I'd like to trap ADO Recordset object events in my ASP script (either VBS or JS, no preference). I've tried (in VBS) writing a Sub rs_RecordChangeComplete( adReason, cRecords, pError, adStatus, pRecordset ) - rs being a server-side ADODB.Recordset object - but it doesn't get called whenever rs is moved (I browse it in a loop). Is...
3
8424
by: Ed Brandmark | last post by:
I have a tag of the form <SCRIPT LANGUAGE="JavaScript1.1" SRC="foo.js"..... and was wondering if this delays the loading of my page until that file foo.js downloads. It seems that if I place this in the HEAD of my document - the page will wait until it downloads. If I place it in the BODY of my document - supposedly the page
16
4731
by: fernandez.dan | last post by:
Hey I'm sorry if this is not the appropriate news group for this question. I was wondering if anyone has any recommendation for embbedding a script engine in a c++ application. I want to feed my C++ application scripts which based on the script would create C++ objects and call the appropriate methods. At the moment I created a simple...
38
7101
by: | last post by:
I have a script... ----- <SCRIPT language="JavaScript" type="text/javascript"> <!-- function makeArray() { for (i = 0; i<makeArray.arguments.length; i++) this = makeArray.arguments; } function makeArray0() {
1
2490
by: Carl Waldbieser | last post by:
Has anyone had any experience embedding a CPython engine in a .NET application? In the COM/ActiveX world, it was pretty easy to use Mark Hammond's win32 modules to create a script engine component that you could expose other COM objects to, but I was not sure how I would go about doing something similar in a .NET environment. For example,...
9
1709
by: sam.s.kong | last post by:
Hello! I have a JavaScript code like the following. <script> var s = "</script>"; ....
1
2997
by: Hardy Wang | last post by:
Hi all, Anybody knows where can I find some information about script engine theory? I have the requirement: Our product has some template files, and there placeholder/variabled embedded inside template (like %CurrentTime%, %HoursRemaining% and so on). There are also some other variables (like %Coupon%) whose value is based on values of...
1
2705
by: Andrus | last post by:
I'm creating WinForms ERP application. This application need to run custom scripts in may places like: retrieving list of invoices before adding invoice before saving invoice after saving invoice before posting invoice after posing etc.
3
11274
by: traceable1 | last post by:
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 thanks!
0
7502
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7434
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7692
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7946
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6026
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3491
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1045
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
744
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.