diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-OCR/Troubleshooting.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-OCR/Troubleshooting.md index a0ef79410..2453216a1 100644 --- a/Document-Processing/PDF/PDF-Library/NET/Working-with-OCR/Troubleshooting.md +++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-OCR/Troubleshooting.md @@ -491,6 +491,39 @@ NuGet: Exception +The application failed to load Tesseract OCR DLLs when hosted on IIS, resulting in the error: +Could not find a part of the path 'C:\inetpub\wwwroot\VizarCore\x64'. + +Reason + + * IIS couldn't load the required Tesseract and Leptonica DLLs because some system components were missing.
+* The Visual C++ Redistributables for VS2015-VS2022 (x86 and x64) were not installed.
+* IIS on a 64-bit server needs both redistributables to load native libraries correctly.
+* The application's folder paths and permissions were not properly set up for OCR binaries.
+ + + +Solution + +Installed Required Redistributables
+Installed both VC_redist.x86 and VC_redist.x64 for VS2015-VS2022 on the IIS server.
+Updated Server
+Applied all available Windows updates (including cumulative and Defender updates) to ensure system stability.
+Configured Application Paths
+Set default paths for OCR binaries:
+* C:\inetpub\wwwroot\myapp\Tesseractbinaries
+* C:\inetpub\wwwroot\myapp\tessdata
+Set Proper Permissions
+Ensured IIS_IUSRS group has Read & Execute and List folder contents permissions on the above directories.
+Observed Delayed Activation
+OCR functionality did not activate immediately-likely due to IIS caching or delayed DLL loading-but began working shortly after configuration.
+ + + + ## OCR not working on Azure App Service Linux Docker Container: Exception has been thrown by the target of an invocation
Exception