401 unauthorized on IIS 7.5?

969 views
Skip to first unread message

demeter

unread,
Jun 7, 2012, 12:45:12 PM6/7/12
to isapi_wsgi-dev
Hello,

I cannot make isapi-wsgi-demo work on 64bit Windows Server 2008, IIS
7.5, python 2.7:

"HTTP Error 401.3 - Unauthorized"
Module IsapiModule
Notification ExecuteRequestHandler
Handler AboMapperCustom-50238
Error Code 0x80070005
Requested URL http://localhost:80/isapi-wsgi-demo
Physical Path C:\inetpub\wwwroot
Logon Method Anonymous
Logon User Anonymous

Is the handler name okay? What could be wrong?

BTW, _demo.dll file exists and has no missing dependencies (according
to DependencyChecker).

Thanks
--ondra

Mark Rees

unread,
Jun 8, 2012, 3:59:48 AM6/8/12
to isapi_w...@googlegroups.com
Hi,

Make sure the user name for IIS anonymous access has the permissions to access the directory where the DLL you created for isapi-wsgi-demo was created.

Mark

Ondřej Martinek

unread,
Jun 8, 2012, 6:07:16 AM6/8/12
to isapi_w...@googlegroups.com
Thanks.
(found http://serverfault.com/questions/38222/iis-7-5-windows-7-http-error-401-3-unauthorized
recently)

Another permission related question... I must run isapi-wsgi-demo as
the administrator otherwise I get access denied error when it tries to
register itself. Is it possible to configure IIS so that other users
can call this API too?

Finally, where does stdout/stderr from the WSGI app goes?

--ondra
> --
> You received this message because you are subscribed to the Google Groups
> "isapi_wsgi-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/isapi_wsgi-dev/-/gDjhsmP2O3UJ.
>
> To post to this group, send email to isapi_w...@googlegroups.com.
> To unsubscribe from this group, send email to
> isapi_wsgi-de...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/isapi_wsgi-dev?hl=en.

Mark Rees

unread,
Jun 8, 2012, 7:38:20 AM6/8/12
to isapi_w...@googlegroups.com
When you register a isapi wsgi app, the user running it must have the
IIS permissions to create virtual directories etc. So any user who
creates isapi wsgi apps (it's the same for installing an ASP or .NET
app) would need these additional IIS permissions. They are not
something you would give a normal user.

Regarding stdout & stderr, suggest you read:

http://code.google.com/p/isapi-wsgi/wiki/UnderstandingISAPIWSGI

In the example section, it discusses enabling tracing in the app and
using an external win32traceutil python process as a console to
collect stdout/stderr.
Reply all
Reply to author
Forward
0 new messages