Publish hangfire of .net framework to iis

The following error occurred:
The process that provides services for the application pool “HangFireMvc” reports a failure during the preloading of the application or loading the service. The process ID is “29372”. Make sure that all application preloading or service settings in the application pool are configured correctly. The data field contains the error number.