Error running under IIS 5

26 views
Skip to first unread message

lee.sy...@googlemail.com

unread,
Oct 17, 2009, 11:07:06 AM10/17/09
to PyISAPIe
Hi,

I'm trying to install PyISAPIe under IIS 5 and can't get IIS to run
it. I'm following this guide : http://code.djangoproject.com/wiki/DjangoOnWindowsWithIISAndSQLServer

Currently, when trying to run a test app, I get this in my Event
Viewer

Could not load all ISAPI filters for site/service. Therefore startup
aborted.

The HTTP Filter DLL C:\Python26\DLLs\PyISAPIe.dll failed to load. The
data is the error.

Data : 0000: 7f 00 00 00

Am I doing something silly? I'm using Python 2.6, and have my Http
directory in
C:\Python26\Lib\site-packages\Http

My PyISAPIe.dll is in
C:\Python26\DLLs

My IIS has an ISAPI filter configured pointing to the dll and I've
allowed it in the Web Service area. I also added an extension .py in
the Application Configuration area. Still, it just won't load.

Oh, and I've also added access to the dll for "NETWORK SERVICE" and
the IWAM users on the machine (I even tried "everyone" just for a
sanity check).

Any help would be greatly appreciated.

Thanks,
Lee

Phillip

unread,
Oct 17, 2009, 8:55:49 PM10/17/09
to PyISAPIe
Hi Lee,

As far as I can tell, you've done everything right, except for one
little detail. If you add the DLL as an ISAPI *extension* rather than
a *filter* then your primary issue should be solved. There's a bit of
a difference between the two types, and PyISAPIe doesn't support any
of the filter functionality. If you still have trouble, make sure you
don't have any filters configured at all before trying again.

Oh and on a side note, I think that the correct permissions for IIS 5
go to the IUSR_ or IWAM_ accounts rather than network service, but
it's been a while since I've used it so I might be wrong. Just
something to try if you still have issues.

Hope that helps!

- Phillip

On Oct 17, 8:07 am, "lee.sylves...@googlemail.com"

lee.sy...@googlemail.com

unread,
Oct 18, 2009, 7:09:46 AM10/18/09
to PyISAPIe
Thank you, that did the trick. Now to setup Django ;-) I'm definitely
writing a How-To once this is over...

lee.sy...@googlemail.com

unread,
Oct 18, 2009, 3:06:27 PM10/18/09
to PyISAPIe
Okay, so, while I now have Python running under IIS, I can't seem to
finish the configuration to get Django running properly. I've followed
the link I posted earlier, but I get a "Directory Listing Denied"
instead of the Hello World message I'm expecting. Also, my PyISAPIe.py
file isn't getting compiled. I put the file in "C:\Python26\Lib\site-
packages\django\core\handlers", and while every other file in there is
getting compiled, that one isn't. Shouldn't I be noting down this file
location in some settings file or something? It doesn't mention that
in the tute, but how else would it be known to be there? Oh, and yes,
my urls.py is setup correctly ;-)

Any help would be greatly appreciated.

Regards,
Lee

Phillip

unread,
Oct 18, 2009, 3:31:32 PM10/18/09
to PyISAPIe, lee.sy...@googlemail.com
The core handler is a bit out of date, and the Django folks don't like
addons to their namespace, so I've been suggesting that people just
use WSGI for now. Eventually I'll re-implement the core handler
outside the Django namespace if it proves to be more efficient, but
WSGI is pretty fast as it is.

There's a simple example that you can pull the Django parts from in
the Examples/WSGI/Isapi.py file, which will suffice as long as you are
only running one instance of Django. (The next version has some
promising changes that should allow for multiple).

Cheers,

Phillip

On Oct 18, 12:06 pm, "lee.sylves...@googlemail.com"
Reply all
Reply to author
Forward
0 new messages