How to get PHP 8.0.26 with PDO running on MS server 2019 IIS 10? - iis

I have MS Server 2019 Standard edition, IIS 10.0.17763.1, Visual C++ 2019, PHP 8.0.26 NTS x64, and php_pdo_sqlsrv_80_nts.dll extension enabled. I'm able to connect to MS Access 2007 database and run a query. I'm able to query the database and return 50 records. The script randomly stops working and I get a 500 error. The Windows Application log returns
Faulting module name: ucrtbase.dll, version: 10.0.17763.1490, time stamp: 0x48ac8393
Exception code: 0xc0000409
Fault offset: 0x000000000006e77e
Faulting process id: 0x1a54
Faulting application start time: 0x01d90be40a629837
Faulting application path: C:\PHP8\php-cgi.exe
Faulting module path: C:\Windows\System32\ucrtbase.dll
I have tried PHP 8.0.26, 8.1.13, and 8.2.0, both NTS and TS, both x86 and 64.
I searched for Faulting module name: ucrtbase.dll, version: 10.0.17763.1490 error and tried command with no luck
DISM.exe /Online /Cleanup-image /Restorehealth
Does anyone else experience this? Does anyone have php8* with PDO working on IIS and if so what did you install and what is your configuration?

Related

Microsoft MIP JAVA SDK sampe error: "Unrecognized exception: profile_add_engine_async"

I am using MIP sdk for JAVA from Microsoft (https://learn.microsoft.com/en-us/information-protection/develop/setup-configure-mip) and trying to execute its sample to read and write MIP labels.
But when I run MIPSample for JAVA I am getting following error message in MIP log.
"2021-02-16 12:23:38.609 common/api_utils.h:232 java (14700) "Unrecognized exception: profile_add_engine_async" mipns::TryExecuteFailureCallback"
And my call to
Future<IFileEngine> fileEngineFuture = fileProfile.addEngineAsync(engineSettings);
IFileEngine fileEngine = fileEngineFuture.get();
is not completing successfully.
In API AuthDelegateUserCredentials::acquireToken(), I am successfully able to get 'accessToken' but when I return that same access token, somewhere it crashes, before it could return and attach fileEngine instance.
I windows event viewer I m getting following error
Faulting application name: java.exe, version: 8.0.2420.8, time stamp: 0x5e246f62
Faulting module name: ntdll.dll, version: 10.0.17763.475, time stamp: 0x3230aa04
Exception code: 0xc0000374
Fault offset: 0x00000000000fb049
Faulting process id: 0x1dc0
Faulting application start time: 0x01d7043c7ac79efc
Faulting application path: C:\code\depot\tools\windows\OpenJDK\1.8.0_242\x64\bin\java.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: ddfa73cc-d1e2-48ef-a76e-866bf67aaaa6
Faulting package full name:
Faulting package-relative application ID:
Please let me know what I might be doing wrong here.
Can you share the version of the SDK you're using? I haven't been able to reproduce this in 1.7. I'm working on a sample for 1.8 and will see if I can repro there.

Poppler pdftohtml.exe fails to load through IIS7

We are using poppler's pdftohtml exe to convert pdf to html. When we running it through flask then it working properly. But once we deploy on IIS then it is throwing below error at the time of using subprocess for pdftohtml.exe in event viewer.
Faulting application name: pdftohtml.exe, version: 0.0.0.0, time stamp: 0x5e08ef38 Faulting module name: ntdll.dll, version: 6.3.9600.19678, time stamp: 0x5e82c88a Exception code: 0xc000007b Fault offset: 0x00000000000ecf40 Faulting process id: 0x2b08 Faulting application start time: 0x01d686ac57ca0b65 Faulting application path: C:\HOLDSPROD\poppler-0.84.0-h1affe6b_0\Library\bin\pdftohtml.exe Faulting module path: C:\Windows\SYSTEM32\ntdll.dll Report Id: 961fde3c-f29f-11ea-80f0-000d3aa29228 Faulting package full name: Faulting package-relative application ID:
From python we are using subprocess to open the cmd.exe and passing the parameters to poppler's exe.
Same issue for pdftoppm.exe(to convert from pdf to image).
Note: This application is wrapped with .net and we have deployed the application on IIS 7.
Any help is appreciated.

enabling 32 bit application result in w3wp.exe crash IIS 10

In my solution, I have three different projects including ASP.Net MVC, Class Library, and Web API.
The application works fine on local, but on the production server (Windows Server 2016) after setting "Enable 32-bit Applications = true" in Application Pool (it is a neccessary requirement), the project stopped working.
The following information in EventViewer is available:
Description: Faulting application name: w3wp.exe, version:
10.0.14393.0, time stamp: 0x57899135 Faulting module name: clrjit.dll, version: 4.8.4180.0, time stamp: 0x5e7d1e02 Exception code: 0xc00000fd
Fault offset: 0x00009865 Faulting process id: 0xc64 Faulting
application start time: 0x01d665a86c307401 Faulting application path:
C:\Windows\SysWOW64\inetsrv\w3wp.exe Faulting module path:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll Report Id:
751158e0-ba08-4f54-ba3c-699e0983a43d
What could be the main reason and how can I fix it?

IIS 8.5 w3wp.exe crash ntdll.dll

i'm on a Windows Server 2012 r2 and there is a problem with a website.
Every ~6min a w3wp.exe of a specific website crash.
In Event Viewer i see:
Faulting application name: w3wp.exe, version: 8.5.9600.16384, time stamp:
0x52157ba0
Faulting module name: ntdll.dll, version: 6.3.9600.18233, time stamp: 0x56bb4e1d
Exception code: 0xc0000374
Fault offset: 0x000e6054
Faulting process id: 0x3d88
Faulting application start time: 0x01d2f406c4d0b47a
Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 4c7498c7-5ffb-11e7-80d5-00155d324108
Faulting package full name:
Faulting package-relative application ID:
In System Event viewer:
A process serving application pool 'www.websitename.com' suffered a fatal communication error with the Windows Process Activation Service. The process id was '16528'. The data field contains the error number.
I tried to use DebugDiag 1.2:
In w3wp__www.websitename.com__PID__24776__Date__07_03_2017__Time_11_32_35AM__939__First chance exception 0X04242420.dmp the assembly instruction at KERNELBASE!RaiseException+68 in C:\Windows\System32\KERNELBASE.dll from Microsoft Corporation has caused an unknown exception (0x04242420) on thread 7
Anyway are all generic errors.. how can i do a good debug?
Thank you

IIS 6.1 - Connection_Abandoned_By_ReqQueue

I'm having a strange problem with one of my sites in IIS 6.1. All of the other sites are running fine, however this one is currently producing an error "Connection_Abandoned_By_ReqQueue" for nearly every request on a subdirectory (the site homepage seems to load fine).
Has anyone seen this kind of issue? I'm completely at a loss :-(
OK more information from the event viewer:
W3WP.exe seems to be crashing every minute or so:
Faulting application name: w3wp.exe, version: 7.5.7600.16385, time stamp: 0x4a5bd0eb
Faulting module name: clr.dll, version: 4.0.30319.17929, time stamp: 0x4ffa59b1
Exception code: 0xc00000fd
Fault offset: 0x00000000000afcdb
Faulting process id: 0x2d24
Faulting application start time: 0x01ce4812c6369480
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: 48aeb9b0-b406-11e2-ae2a-020053dee25a

Resources