last ...
This commit is contained in:
+20
-4
@@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user