Fixing "Class not registered" error in Sage CRM .NET pages

You might have been unfortunate enough to have run into this obscure error in a Sage CRM instance. According to the Sage CRM forum, this error is caused

You might have been unfortunate enough to have run into this obscure error in a Sage CRM instance:

The dreaded

According to the Sage CRM forum, this error is caused by an update for Windows released in July 2018 (more specifically the update KB4338420). This issue has not only caused errors in Sage CRM, but also other IIS applications.

Solution

This solution was provided by Jeff Richards in this forum post from here. I am posting it as a reference for myself and others who may run into this issue.

The following steps should configure IIS to not cause any further issues such as this:

  1. Open IIS Manager and navigate to the CRM site:
    IIS_CRM-bb99e6db7420b056176c93a5b4eb9906-cd5f0
  2. Go to Authentication:
    IIS_Authentication-d0fd204d7da38abd1e8b532e8e612a72-d741b
  3. Select the Anonymous Authentication, click Edit... on the right, select the Application pool identity radio button and click OK to save the changes.
    IIS_ChangeSiteIdentity-7e1c9893aa6e0cc369270c10c9fbb8af-52fd6
  4. You may need to restart the CRM website for the changes to take effect:
    IIS_Restart-81dc76a79aebfa70778a3728706c9d8d-7df5b

Conclusion

This should be enough to resolve the issue according to the Sage CRM forum. I can confirm that this solution worked for me at one of my client's sites after much troubleshooting. If you still have issues, let me know in the comments and we'll see if we can find another solution.