IIS 7 and Above
Last post Jan 27, 2020 09:08 AM by AshutoshApte
Jan 09, 2020 02:34 PM|AshutoshApte|LINK
We have a software which has mostly ASP and vb6 components. We use IIS to host our website. When we install the software and open the ASP page. We get below error.
A trappable error (C0000005) occurred in an external object. The script cannot continue running.
Also, we get below error when ASP is trying to create a object of VB6 dll
Method '~' of object '~' failed
We did put a debug log into the same dll and found that the same error is getting thrown on the line "Exit Sub".
Can anyone please help?????
Jan 10, 2020 07:21 AM|Yuk Ding|LINK
C0000005 is access violation exception. This error have something to do with memory read.
You may need to capture a crash dump to check its memory address and callstack.
Besides, process monitor will show access violation exception. So you could use this tool to help you troubleshooting this issue.
Jan 10, 2020 07:48 AM|AshutoshApte|LINK
Thank you Yuk. Any idea about "Method '~' of object '~' failed" error?
Jan 14, 2020 10:05 AM|Yuk Ding|LINK
This error can be a registration issue or compatibility issue.
Jan 21, 2020 11:30 AM|AshutoshApte|LINK
I tried something like following
This should be shown.
Above code works but if I add Response.write(e.description) in catch block it fails again. Failed Request says "Response" is undefined...rest all ASP pages working other than C00000005 Trappable error.
Jan 21, 2020 11:36 AM|AshutoshApte|LINK
it seems the dlls are working fine when getting called from other DLLs or Exes but when getting called from Web page fails.
Jan 27, 2020 08:22 AM|AshutoshApte|LINK
Any help? This issue is only occurring on Windows Server 2019. On Windows Server 2016 the same webpages and dlls, everything is working fine.
Jan 27, 2020 09:08 AM|AshutoshApte|LINK
I found the issue myself. I just changed the App Pool setting to "Classic" from "Integrated" and everything seems to be working fine.