472,352 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,352 software developers and data experts.

%1 is not a valid Win32 application?

Hi all, I followed some simple instructions to add python scrips to IIS
as a cgi. The instructions were here:

http://www.e-coli.net/pyiis.html

Unfortunately, when I try to run a test script, I get this message
displayed on my browser window:

%1 is not a valid Win32 application.

That's it! No 500 error, nothing else. I'm not sure what is generating
this message so I'm asking various groups here what might be the issue.

I'm totally at a loss how to move forward. Anyone know? I'll even take
vague suggestions at this point. ;)

Is this error message comming from IIS or is it possibly python? Note
my python instal seems to work ok (runs from command line just fine,
etc.) The test app I'm using (named test.cgi) right now is in a
directory that's already been linked to an IIS virtual directory, from
which I can run ASP scripts just fine. Permissions and ownership should
all be the same. (The permissions on the virtual directory from IIS are
Scrips and Executeables). The test script is here, should you care:

print "Content-type: text/html\n"
print "<h3>Hello World!</h3>"
print "<p>"
print "Well this is just a basic test, mkay?"
print "If this had been a real test there would have been lots more
here, mkay?"

Jul 18 '05 #1
3 12118
Just a quick update:

I decided to rename the extension for python scripts ".pycgi". Ok, so
when I did so, I decided to test. Result: with .pycgi in the IIS Admin
properties, test.cgi STILL returns "%1 is not a valid Win32
application." Wow. So it's like IIS is ignoring the .cgi rule I added
somehow.

Second, once I renamed test.cgi to test.pycgi, the file time is totally
unrecognized. My browser (Mozilla) declares the type of test.pycgi to
be unrecognized and askes me if I want to download instead. I even
added the .pycgi rule to the vitual directory where the script lives and
I get the same result.

Help!

Jul 18 '05 #2
Update #2:

Renamed the extension yet again, this time to .py. Mozilla seems to
recognize this as a text file and displays it, but IIS still doesn't
seem to catch the .py rule I added to the IIS Admin properties. The
script is still not being executed.

Win2K Pro, IIS 5.0. SP4 and current on all updates.

Man I hope someone can help, I'm really lost here. I think I'll try to
add perl as a script just to see if I can get it to work.

Jul 18 '05 #3
Mark Space <ma**********@hotmail.com> wrote in message news:<vo************@corp.supernews.com>...
Update #2:

Renamed the extension yet again, this time to .py. Mozilla seems to
recognize this as a text file and displays it, but IIS still doesn't
seem to catch the .py rule I added to the IIS Admin properties. The
script is still not being executed.

Win2K Pro, IIS 5.0. SP4 and current on all updates.

Man I hope someone can help, I'm really lost here. I think I'll try to
add perl as a script just to see if I can get it to work.


Hmm... have you checked your system's environment variables? This
error message sounds like maybe "PATHEXT" needs to be set to include
".PY" (to make Python scripts executable)... although having no
experience with IIS whatsoever this is only a stab in the dark, and
bursts of sudden pigeons might still be lurking.

--
Christopher
Jul 18 '05 #4

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

Similar topics

1
by: greg grosiak | last post by:
Hello, I am tring to downloand a character file from microsoft agent website. I download the animated character peedy and when I try and run...
1
by: Pradeep D | last post by:
Hi, We have a .net dll, which has a wrapper to command line tool. When we try to call we enocunter this error. When we execute the same command...
1
by: Pradeep D | last post by:
Hi, We have a .net dll, which has a wrapper to command line tool. When we try to call we enocunter this error. When we execute the same command...
0
by: kk | last post by:
hello all, I want to call an exe(IISWeb.vbs) to create a site in Sharepoint.While calling that exe through Process.Start() it throws the...
0
by: Don MacKenzie | last post by:
Hi, I have a new development server that i put together on a Windows 2003 64 bit machine. I also have SQL Server 2005 and Developers Studio 2005...
6
by: =?Utf-8?B?TWVsaXNzYQ==?= | last post by:
I was having a problem on my computer and had to uninstall and re-install iis. Now I am trying to re-register asp.net using aspnet_regiis.exe -i...
7
by: Boris | last post by:
I have a mixed DLL (a managed DLL in C++ calling functions in other unmanaged DLLs) which I can build successfully in Visual Studio 2005 but can't...
0
by: Gianluca Pezzoli | last post by:
Hi, I have Windows Server 2003 x64 standard SP2 Italian, with Xeon 3.8 Ghz and 2GB RAM. On Server I found installed .net framework 1.1 and 2.0...
2
by: jake | last post by:
I am new to web development. I published a VS 2008 web page (default.aspx) file (along with its .cs file), using the "Publish Web Site" feature, to...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.