Wednesday, September 11, 2019

Unable to initialize the native configuration support external to the web worker process


Unable to initialize the native configuration support external to the web worker process (HRESULT=0x80040154). nativerd.dll must be in %windir%\system32\inetsrv.



I received such an error (during run-time) when I was trying to connect to Dynamic CRM using CrmServiceClient.

This error is not related to Dynamic CRM, instead it is something to do with our machine configuration, I look over the internet and find the below solution.

Open Program and Features from Control Panel and navigate to windows feature turn on/off.

Here you need to enable (Tick) HTTP Activation for your respective .Net Framework either 6/7/8.



Once enabled, try to re-run your .Net Code and it should be able to connect to dynamic CRM without any problem.


1 comment:

Anonymous said...

Thank you!!
This helped me with a patch for the CRM Outlook Plugin error I was getting: "The type initializer for 'Microsoft.Crm.LocatorService' threw an exception." Then your same error.
Applied your fix and the patch installed fine after that.