I am unable to publish the Map service in ArcGIS Server and my server is federated with Portal for ArcGIS.
Below is the issue while publishing the service:
Failed to create the service.: ERROR: code:500, 0x80004001 - Class not registered, Internal server error.
Core server call to create service failed (/admin/createService).
Failed to create the service 'UN_Gas_Network.MapServer'. com.esri.arcgis.discovery.servicelib.AGSException: AutomationException: 0x80004001 - Class not registered