Access denied trying to install app

89 views
Skip to first unread message

shawn....@gmail.com

unread,
Aug 29, 2014, 12:31:42 PM8/29/14
to isapi_w...@googlegroups.com
I'm using Windows Server 2012 and IIS 8.5, and I'm trying to use the test.py sample to test that everything is working properly ("python test.py install") as shown in this question. I'm getting Access is Denied. I'm trying to understand why. I'm in C:\inetpub\wwwroot\, running as Administrator. In python, I can import isapi_wsgi without problem. Obviously, somewhere I'm missing permissions, but since I'm a n00b with IIS and isapi_wsgi, I'm struggling to understand where. 

I will also mention that when trying to setup the HandlerMapping manually, and trying to run my real website, I'm getting "Failed to find the RegisterModule entrypoint in the module DLL C:\Python27\Lib\site-packages\isapi\PyISAPI_loader.dll.  The data is the error." from IIS.

I would appreciate any guidance and direction on offer. Thanks in advance. The full error traceback is below.

 (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
    handler(conf_module_name, params, options, log)
  File "C:\Python27\lib\site-packages\isapi\install.py", line 615, in
    Install(params, options)
  File "C:\Python27\lib\site-packages\isapi\install.py", line 494, in
    CreateDirectory(vd, options)
  File "C:\Python27\lib\site-packages\isapi\install.py", line 289, in
    target_dir = GetObject(FindPath(options, params.Server, parent))
  File "C:\Python27\lib\site-packages\isapi\install.py", line 144, in
    return FindWebServer(options, server)+"/ROOT"+name
  File "C:\Python27\lib\site-packages\isapi\install.py", line 205, in
    server = GetWebServer(server_desc)
  File "C:\Python27\lib\site-packages\isapi\install.py", line 177, in
    path = LocateWebServerPath(description)
  File "C:\Python27\lib\site-packages\isapi\install.py", line 158, in
    iis = GetObject(_IIS_OBJECT)
  File "C:\Python27\lib\site-packages\win32com\client\__init__.py", l
    return Moniker(Pathname, clsctx)
  File "C:\Python27\lib\site-packages\win32com\client\__init__.py", l
    moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
pywintypes.com_error: (-2147024891, 'Access is denied.', None, None)
Reply all
Reply to author
Forward
0 new messages