asalas
New Pleskian
- Server operating system version
- Windows
- Plesk version and microupdate number
- 18.0.65
Hi everyone,
I'm hosting a .NET Core API on a Plesk server (Windows hosting, IIS), and my application is failing to start.
The logs show the following error:
"Could not load file or assembly 'Microsoft.IdentityModel.Protocols, Version=7.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified."
However, I’m fairly certain this is a misleading message. I’ve faced this issue before and it was not actually caused by this DLL. The file is present in the published output, and locally everything works fine.
Any insights or tips would be appreciated. Thanks in advance!
I'm hosting a .NET Core API on a Plesk server (Windows hosting, IIS), and my application is failing to start.
The logs show the following error:
"Could not load file or assembly 'Microsoft.IdentityModel.Protocols, Version=7.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified."
However, I’m fairly certain this is a misleading message. I’ve faced this issue before and it was not actually caused by this DLL. The file is present in the published output, and locally everything works fine.
Context:
- .NET version used: [.NET 8]
- Publish mode: [Framework-dependent / Self-contained]
- Hosting mode: In-process
- Application runs fine locally and on other environments.
What I’ve tried:
- Verified that the DLL exists in bin and publish folder.
- Server has matching .NET runtime installed.
- Increased logging detail, but stack trace still points to the missing DLL.
- Suspecting the real problem lies deeper (e.g., broken dependency, runtime incompatibility, or JWT setup).
Questions:
- Has anyone encountered this error on Plesk and found the root cause was unrelated to the DLL?
- Is there a way to get deeper logging (for example, module load failures or inner exceptions during startup)?
- Any Plesk-specific configuration that could interfere with how .NET loads assemblies?
Any insights or tips would be appreciated. Thanks in advance!