Top.Mail.Ru
? ?

balmaster, posts by tag: python - LiveJournal

Entries by tag: python

SxS.load library problem 0xc0000135
Image
Imagebalmaster
Sometime ago.
I  needed to install a some python django appllication into apache+mod_wsgi on my home workstation for testing purposes.

win 7 x64
python 2.6
mod_wsgi

The application was running well on internal django web server into eclipse, but did not running on apache with mod_wsgi. Because it have problem with loading a dll.

C:\Python26\Lib\site-packages\lxml-2.3-py2.6-win32.egg\lxml\etree.pyd

1194:0674 @ 570305506 - LdrpHandleOneOldFormatImportDescriptor - ERROR: Loading "?????lU???????r??????tu??????lS???????r?????m??????ee?????" from the import table of DLL "C:\Python26\lib\site-packages\lxml-2.3-py2.6-win32.egg\lxml\etree.pyd" failed with status 0xc0000135


This module is native part of lxml-2.3-py2.6-win32.egg library

I added a logging of windows loader events for httpd.exe
gflags.exe -i httpd.exe  +sls

Want to know more...

Conclusion: If a library does not contains a manifest, os loader uses external or internal manifest from a executable file. If a library contains manifest resource, os loader does not uses a external manifest of executable file. So SxS does not resolves MSVC90.dll, and we get  STATUS_SXS_KEY_NOT_FOUND.

Useful links:
http://blogs.msdn.com/b/junfeng/archive/2006/11/20/debugging-loadlibrary-failures.aspx
http://omnicognate.wordpress.com/2009/10/05/winsxs/
http://msdn.microsoft.com/en-us/library/ms235512%28v=VS.90%29.aspx
http://msdn.microsoft.com/en-us/library/aa376307.aspx
http://msdn.microsoft.com/en-us/library/aa374219.aspx
http://msdn.microsoft.com/en-us/library/aa374224.aspx


Image