This commit is contained in:
2026-11-26 19:37:19 +03:30
parent 869a0476a0
commit 384cffac36
14 changed files with 882 additions and 6 deletions
+20 -4
View File
@@ -80,12 +80,12 @@ namespace xIds
//
// Register Security Provider ...
services.AddSingleton<IXSecurityProvider, XSecurityProvider>();
services.AddSingleton<IXSecurityProvider, XSecurityProvider>();
}
public void Configure(
IApplicationBuilder app,
IWebHostEnvironment env,
IApplicationBuilder app,
IWebHostEnvironment env,
ILogger<Startup> logger
)
{
@@ -133,7 +133,23 @@ namespace xIds
//
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
//
// endpoints.MapDefaultControllerRoute();
//
try
{
endpoints.MapDefaultControllerRoute();
}
catch (ReflectionTypeLoadException ex)
{
foreach (var loaderException in ex.LoaderExceptions)
{
// Log or inspect the specific error, e.g., "Could not load file or assembly..."
Console.WriteLine(loaderException?.Message);
}
throw; // Re-throw to preserve the original behavior
}
});
}
}