7148 is a common error code that indicates that something failed in SF during the configuration or activation process of the service host. So the reason you don't see any errors or exceptions is because your code never gets a chance to run.
Examples of things I saw that led to 7148:
- exe was not actually a window exe due to corruption
- In the service manifest, there was a link to a certificate or some other pre-req, such as an endpoint that was not configured correctly (for example, a port that was already in use, or an invalid fingerprint for the certificate).
- Something exploded on Windows, which caused the process to crash, for example, setting up the host network for the container failed.
, , Windows, , . SF , 7148.