>  -----Urspr�ngliche Nachricht-----
> Von:  Thomas Melzer (ToMeSoft)  
> Gesendet:     Dienstag, 12. Juni 2001 12:01
> An:   '[EMAIL PROTECTED]'
> Betreff:      Python ActiveX Script and ASP get blank pages on IIS4 and
> Windows NT 4 Workstation
> 
> Hi,
> Hi,
> I've recognized the following issue with win32all139 or ActivePython 2.1 -
> 210b with Windows NT Workstation SP6a:
> Aftre installion the ActiveX Script Engine and Helper objects are not
> registerd correctly.
> 
> On Windows NT 
> - After mapping a virtual directory to the Python ASP samples I got a
> blank page 
> after calling the tut1.asp sample with IIS4 on Windows NT Workstation.
> WSH and IE runs ok.
> 
> Further investigation (using DbMon from the Microsoft Plattform SDK) shows
> that after loading the page these to messages where produced on the debug
> console (DbMon)
> 
> "PythonCOM Server - The policy module could not be loaded"
> "CPyFactory::CreateInstance failed to create instance ..." with a HRESULT
> of E_FAIL
> 
> After getting the source code of PyFactory.cpp from the CVS I found that
> an Import_Module of "win32com.server.policy"
> failed. The documentation got tme the Impression that the module coul not
> be located.
> 
> After inspecting the ACL of the HKLM\Software\Python key  and its subkeys
> in regedt32 shows that only Adminstrators and 
> SYSTEM had Full Control -- nobody else.
> 
> So this made clear to me that the IUSR_<MACHINENAME> account get no access
> to the path information wher the win32com module resides 
> in the pyhsical filesystem.
> 
> After adding IUSR_<MACHINENAME> and IWAM_<MACHINENAME> to the ACL of
> HKLM\Software\Python key with Read access things 
> begin to work.
> 
> One issue I got after doing the change to the ACL:
> --> you have to restart the IIS process doing a "net stop iisadmin" "net
> start w3svc" as IIS caches the access denied to the key so 
> it is not aware of the changes to the ACL you did.
> 
> On WIndows 2000 all worked fine as Windows 2000 has another default ACL
> for HKLM\Software which includes Everyone group
> 
> So to resolve this issue permanently on Windows NT4 you should check the
> ACL on the Python Key 
> and if IIS is installed change the ACL accordingly.
> 
> Or at least document this issue with the fix I found.
> 
> Regards
> -- Thomas Melzer
> --------------------------------------------------
> bineo Network Solutions GmbH
> Germany
> EMail: [EMAIL PROTECTED]
> 
> 
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to