non vi ho messo gli errori perchè ho dato per scontato di sbagliare proprio dal principio.
cmq, se metto questo:
codice:
return RedirectToPage("./Identity/Account/Login");
mi dice questo:
codice:
An unhandled exception occurred while processing the request.
InvalidOperationException: The relative page path './Identity/Account/Login' can only be used while executing a Razor Page.
Specify a root relative path with a leading '/' to generate a URL outside of a Razor Page.
If you are using LinkGenerator then you must provide the current HttpContext to use relative pages.
se metto questo:
codice:
return View("/Account/Login");return View("/Account/Login");
mi dice questo:
codice:
An unhandled Exception occurred while processing the request.
InvalidOperationException: The view '/Account/Login' was not found. The following locations were searched:
/Account/Login