After installing Office 2016 in a SharePoint server, you may see the error message below while visiting the localhost site:
An unhandled win32 exception occurred in w3wp.exe . Just-In-Time debugging this exception failed with the following error: No installed debugger has Just-In-Time debugging enabled.
After analyzing DebugDiag dump, we saw that an ISAPI Extension (OWSSVR - a library for SharePoint Team Services) caused the issue. This library got damaged by the Office installation.
Repairing the SharePoint installation should solve the issue. After repairing it, check if the SharePoint sites work. You should also confirm that Office programs work as well.
Note: Installing both Office and SharePoint in the same server is not supported.If your application needs to work with Office documents, It’s better to embed required DLLs in the application code or install Office Web Apps Server.