I have no idea if this is the correct place to ask this; but here goes.
After testing local using IIS Express on my Windows 10 dev machine, I have deployed an ASP .NET application to IIS 8.5 on Server 2012 R2. It is a custom web printing tool running in its own application pool.
I am using Win32_Printer to get details on the printers. However it keeps crashing wmiprvse.exe.
In the WMI-Activity event log I get:
Id = {...}; ClientMachine = XXXXX; User = IIS APPPOOL\xxxxxx; ClientProcessId = 2856; Component = Unknown; Operation = Start IWbemServices::ExecQuery - root\CIMV2 : SELECT * FROM Win32_Printer WHERE Local=true; ResultCode = 0x800706BE; PossibleCause = Unknown
If I login to the server (with my admin account) and use powershell to call
Get-WmiObject Win32_Printer I get valid data returned. After that the ASP .NET application works (at least until server restarts).
Thanks,
Mark