[python-win32] ASP Error 0115
Jorgensen, Jens
jens.jorgensen@tallan.com
Fri, 05 Oct 2001 13:27:44 -0500
The main problem I've run into with ASPs is that the user they are run
as, IUSR_MACHINE, is pretty lacking in privileges (which is a good thing
of course). I'm not sure how that would translate into your C0000005
error, which is a memory error, caused by trying to read from or write
to an invalid memory address. A python try: won't catch this because it
isn't set up to catch this error. You can catch it in C++ though with a
catch (...) {} block. I'd put this in strategic areas in the code and
log when it occurs and you ought to be able to figure out where it's
occurring.
Ruggier, Mario wrote:
>Hi,
>
>I have an Active Server Page using Python as Script Language,
>running on IIS 5.0, Win2000, ActivePython 2.1.
>
>In the ASP, I import a python module (which is a DLL generated
>with SWIG wrap of a C++ module). The module imports OK, but when
>I try to call any method of this module, I consistently get
>the ASP error:
>
>Error Type:
>Active Server Pages, ASP 0115 (0x80004005)
>A trappable error (C0000005) occurred in an external object.
>The script cannot continue running.
>/asp/test.asp
>
>When I run the same identical python code that uses this module
>out of ASP, both as a stand-alone script and as a module called
>from another web application (not ASP), the code and the
>imported module give perfectly correct rsults.
>
>The ASP error is generated even if the method call that triggers
>it is inside of a python try/except block.
>
>Does anyone any ideas what may be causing this, or even
>how I may go about to debug this?
>
>
>Mario Ruggier
>--
>SoftPlumbers SA, 26 rue Maunoir, CH-1207 Genève
>Mobile +41.79.240.8636 | Office +41.22.849.1002
>
>_______________________________________________
>Python-win32 mailing list
>Python-win32@python.org
>http://mail.python.org/mailman/listinfo/python-win32
>
--
Jens B. Jorgensen
jens.jorgensen@tallan.com