Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
538 views
in Technique[技术] by (71.8m points)

windows - 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...