Skip to main content
Participant
July 31, 2023
Question

Acrobat Reader via .NET WebBrowser control: There is a problem (0:521) and access violation errors

  • July 31, 2023
  • 0 replies
  • 433 views

With .NET's WebBrowser control, after viewing (via the Reader ActiveX control) successive PDFs relatively quickly (with .Dispose() called in-between) we are receiving the error "There is a problem with Adobe Acrobat/Reader. If it is running, please exit and try again. (0:521)." If you continue to set the URL to other local PDFs without reinstantiating WebBrowser, you may get an access violation exception (coming via .NET) or an outright crash with an entry such as this in Event Viewer:

 

Faulting application name: Application.exe, version: 3.3.0.754, time stamp: 0x64c2eb93
Faulting module name: AcroPDFImpl.dll_unloaded, version: 23.1.20143.0, time stamp: 0x642c5627
Exception code: 0xc0000005
Fault offset: 0x00040e00
Faulting process ID: 0x0x10520
Faulting application start time: 0x0x1D9C0D74EA50668
Faulting application path: C:\Work\MainLine2\Bin\Debug\Products\Argus\Application.exe
Faulting module path: AcroPDFImpl.dll
Report ID: 9f0c44de-23c8-4f52-b3fa-2eee79db597e
Faulting package full name:
Faulting package-relative application ID:

 

We have been able to reproduce this on

Windows 11 22H2 (OS Build 22621.1992)

Adobe Reader 2023.003.20244

The WinForms app with WebBrowser can be .NET 3.5 or .NET 4.8, 32-bit or 64-bit, I've had it with either combination.

 

Originally, we thought it might be something peculiar to our app however I was able to reproduce it today with a bare minimum fresh winforms app. I will try some other systems; whether or not app.manifest has '<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />' for Win10 seems to change the error code but not eliminate the issue.  Uninstalling and reinstalling Acrobat Reader did not help, nor did turning off protected mode, enhanced security, etc.

 

Any assistance would be appreciated or advice on what other information / traces / logs I should collect.

 

Thanks,

-Jason

 

 

This topic has been closed for replies.