SMS_NOTIFICATION_SERVER Installation Failure

The Problem

One of my clients was recently experiencing failures installing the SMS_NOTIFICATION_SERVER component. SITE_COMPONENT_MANAGER would continuously retry the installation of  the SMS_NOTIFICATION_SERVER component and fail.

Here is the error that was presented in the SMS_NOTIFICATION_SERVER log:

Site Component Manager failed to install this component, because the Microsoft Installer File for this component (bgbisapi.msi) could not install.

I took a look at bgbisapi.msi.log and discovered errors like the following:

Failed to unregister bin\x64\microsoft.configurationmanager.bgbserverchannel.dll with .Net Fx 4.0

The Solution

Here is what I did to resolve the issue:

I got the path to RegSvcs.exe from bgbisapi.log. The line containing the path should look similar to the following:

CTool::RegisterComPlusService: run command line: “C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegSvcs.exe” /u “C:\Program Files\Microsoft Configuration Manager\bin\x64”

I then browsed to the path where RegSvcs resides and added the following lines just before the </configuration> tag in the InstallUtil.exe.config and RegSvcs.exe.config files:

<runtime>
<loadFromRemoteSources enabled=”true”/>
< /runtime>

For example: If your InstallUtil.exe.config and RegSvcs.exe.config files look like the following:

<?xml version =”1.0″?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy=”true”>
<requiredRuntime safemode=”true” imageVersion=”v4.0.30319″ version=”v4.0.30319″/>
</startup>
</configuration>

It should look like this with the additional setting added:

<?xml version =”1.0″?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy=”true”>
<requiredRuntime safemode=”true” imageVersion=”v4.0.30319″ version=”v4.0.30319″/>
</startup>

<runtime>
<loadFromRemoteSources enabled=”true”/>
< /runtime>
</configuration>

This additional setting specifies that assemblies loaded from remote sources should be granted full trust.

Once both of these files were modified, I then restarted the SITE_COMPONENT_MANAGER component and monitored the bgbisapi.msi.log for successful installation. The SMS_NOTIFICATION_SERVER component installed successfully.