last ...
This commit is contained in:
+1
-17
@@ -133,23 +133,7 @@ namespace xIds
|
||||
//
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
//
|
||||
// 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
|
||||
}
|
||||
endpoints.MapDefaultControllerRoute();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user