Access Denied trying to install app

111 views
Skip to first unread message

shawn....@gmail.com

unread,
Aug 29, 2014, 2:29:09 PM8/29/14
to isapi_w...@googlegroups.com
I'm using IIS 8.5 on Windows 2012, and I'm getting access denied when I'm trying to install as indicated in the Testing section here. Obviously, somewhere, somehow, I'm missing permissions, but since I'm a n00b with IIS and isapi_wsgi, I'm not sure where. I copied the test.py file to C:\inetpub\wwwroot\ and ran it there. The traceback is copied below. Any guidance or direction you can give will be greatly appreciated.

(Django165) PS C:\inetpub\wwwroot> python test.py install
Traceback (most recent call last):
  File "test.py", line 154, in <module>
    custom_arg_handlers = custom_arg_handlers)
  File "C:\Python27\lib\site-packages\isapi\install.py", line 724, in HandleCommandLine
    handler(conf_module_name, params, options, log)
  File "C:\Python27\lib\site-packages\isapi\install.py", line 615, in InstallModule
    Install(params, options)
  File "C:\Python27\lib\site-packages\isapi\install.py", line 494, in Install
    CreateDirectory(vd, options)
  File "C:\Python27\lib\site-packages\isapi\install.py", line 289, in CreateDirectory
    target_dir = GetObject(FindPath(options, params.Server, parent))
  File "C:\Python27\lib\site-packages\isapi\install.py", line 144, in FindPath
    return FindWebServer(options, server)+"/ROOT"+name
  File "C:\Python27\lib\site-packages\isapi\install.py", line 205, in FindWebServer
    server = GetWebServer(server_desc)
  File "C:\Python27\lib\site-packages\isapi\install.py", line 177, in GetWebServer
    path = LocateWebServerPath(description)
  File "C:\Python27\lib\site-packages\isapi\install.py", line 158, in LocateWebServerPath
    iis = GetObject(_IIS_OBJECT)
  File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 72, in GetObject
    return Moniker(Pathname, clsctx)
  File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 87, in Moniker
    moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
pywintypes.com_error: (-2147024891, 'Access is denied.', None, None)

Mark Rees

unread,
Aug 29, 2014, 8:40:08 PM8/29/14
to isapi_w...@googlegroups.com
When you install (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. 
Reply all
Reply to author
Forward
0 new messages