This commit is contained in:
2026-11-28 00:08:02 +03:30
parent 9d913146e1
commit 49483d1d39
2 changed files with 17 additions and 34 deletions
+1 -17
View File
@@ -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();
});
}
}