Search code examples
windowsasp-classicwindows-server-2008-r2

Classic ASP : C0000005 Error on execution


I'm trying to execute classic ASP pages on a windows 2008 64 bit R2 box.

Initially the problem was with registering dlls; that's now fixed. Register DLL file on Windows Server 2008 R2

Now when I try to access the page I get this error

Active Server Pages error 'ASP 0241'

CreateObject Exception

index.asp

The CreateObject of '(null)' caused exception C0000005.

Server object error 'ASP 0177 : c0000005'

When I change the code from Server.CreateObject to CreateObject, I end up with this error

Active Server Pages error 'ASP 0115' Unexpected error index.asp

A trappable error (C0000005) occurred in an external object. The script cannot continue running.

I checked everything I could - Access and admin rights etc. The application pool are set to No Managed Code + Classic mode.

Any ideas to fix this?


Solution

  • You're not going to fix this in ASP. The C0000005 is the Access Violation Exception. This occurs when code attempts to read memory that it hasn't allocated.

    The dll is doing something bad when it loads or during the construction of the object.

    Have you tested the dll with a simple .vbs file?