IIS7

89 views
Skip to first unread message

concussionGFX

unread,
Nov 24, 2009, 5:40:33 PM11/24/09
to PyISAPIe
Whats the proper steps to install on ws2008 IIS7?

I keep getting this error.

Possible recursion detected!
You probably did a passthrough with PyISAPIe configured as an
application map instead of a wildcard map.

I have activepython 2.6.4.8 installed and pyISAPIe rc4.

I moved the .dll and http folder to the python DLL folder and have set
the permissions for network_services.

Thanks
-Tim



Phillip

unread,
Nov 25, 2009, 1:12:15 PM11/25/09
to PyISAPIe
Hi Tim,

You probably have this code in your Isapi.py file:

if not Handler:
try:
Handlers[Key] = imp.load_source(Key,
Env.SCRIPT_TRANSLATED).Request
except Exception, Val:
# trigger a passthrough to the next ISAPI handler -
# ONLY WORKS FOR WILDCARD APPLICATION MAPPINGS
return True
# or just fail, preferable for an application map
#raise ImportError, "[Loading '%s'] %s" %
(Env.SCRIPT_TRANSLATED, str(Val))

If you are trying to just execute the script corresponding to
SCRIPT_TRANSLATED and it's not found, the default behavior is to pass
control to the next handler... but this only works when you have
PyISAPIe configured as a wildcard handler and not when it's set to
handle *.py files (or any specific extension). You can remove the
entire except statement to see what error is produced and go from
there.

- Phillip

Concussion GFX - Tim

unread,
Nov 25, 2009, 11:09:44 PM11/25/09
to pyis...@googlegroups.com
I found that if I set  the language of the asp pages to python, I get the functionality that I need (by just installing activepython)
Is there any benefits in installing pyISAPIe in this scenario?

Thanks
-Tim

Phillip wrote:
--

You received this message because you are subscribed to the Google Groups "PyISAPIe" group.
To post to this group, send email to pyis...@googlegroups.com.
To unsubscribe from this group, send email to pyisapie+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyisapie?hl=en.



  

--
----------------------------------------------------------
Tim Vazquez
(407) 341-5377

CGM Studios
www.cgmstudios.com

Concussion Graphics and Media
www.concussion.cc
----------------------------------------------------------

Phillip Sitbon

unread,
Nov 26, 2009, 2:59:33 PM11/26/09
to pyis...@googlegroups.com
Well, for one thing, you get better performance - IIRC, ActivePython
is slower by nearly an order of magnitude. Also, I'm not sure if
ActivePython does this, but you can also (with the wildcard handler)
use your own URL-to-code mapping in PyISAPIe rather than requiring a
file extension and only mapping to modules.

Cheers,

Phillip
Reply all
Reply to author
Forward
0 new messages