Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > IIS python web application mapping issue - resolved

Reply
Thread Tools

IIS python web application mapping issue - resolved

 
 
davidj411
Guest
Posts: n/a
 
      04-03-2009
i searched the internet for an hour , never found this info, and
figured it out myself.
posting this so that others won't have to look so hard.

ran across this issue and it seems that nobody really documented this
correctly on http://support.microsoft.com/kb/276494

in IIS i could not add the "python mapping" to the web mappings like
this:
"c:\<your python path>\python.exe -u %s %s"


windows said the file does not exist, even when i unchecked the option
to make sure it exists (and it does exist!).

it would not allow the arguments, i.e. it allowed the mapping when i
just used "c:\<your python path>\python.exe".

solution was to do it like this:
c:\<your python path>\python.exe -u "%s %s"

making the arguments have there own set of quotes.


remember to also do the following
have web service extensions enabled for cgi.
register python using pyscript.py.

thanks!

David
 
Reply With Quote
 
 
 
 
davidj411
Guest
Posts: n/a
 
      04-03-2009
I thought i was being clever but not only did i typo , but it does not
work with the "-u" for unbuffered option.

remove the "-u" to avoid the ugly message:

CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers.

I am going to use the CGI script to upload files (.exe and .zip files)
and had read that "-u" would be needed.

i am going to need to research how this is done now that "-u" is a
known issue with IIS.
i think that i will need to baseencode64 the data before writing it to
a file. not sure really...
any thoughts are appreciated.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Certificate Mapping From IIS to asp.Net Application DLN ASP .Net 0 05-24-2007 05:21 PM
Intermittent problem with ASP.NET IIS **## NOT RESOLVED ##** Brano ASP .Net 0 01-06-2006 10:03 AM
Intermittent problem with ASP.NET IIS **## NOT RESOLVED ##** Brano ASP .Net 0 01-06-2006 09:54 AM
Application Mapping - IIS Config Michael Tissington ASP .Net 6 10-19-2005 05:26 AM
application mapping in iis Ian Turner ASP .Net 4 10-26-2003 10:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57