Hi All,
I am having one error like HTTP 404 Error,
Like whenever we enter in URL at ' Singlcotes ' and Collan : getting below error,
I recomended to create Custom error page for all exceptions conditions ,So for any http error codes that are not 200 OK.
Could you please help me on this, what type of configurations needed for this error. and where exactly we need add those type of configurations. Please give me the solutions.
For example: https://www.c-sharpcorner.com/forums' Getting below error.
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Sonar'
Thanks,
Pratap.
Prathap GPosted Oct 27, 2020, 10:13 AM
Prathap GPosted Oct 26, 2020, 12:07 PM
Id: @data.id
Guest UserPosted Oct 24, 2020, 1:53 PM
Sachin SinghPosted Oct 24, 2020, 12:05 PM
Prathap GPosted Oct 24, 2020, 11:22 AM
{
// GET: Error
public ActionResult Index()
{
ViewBag.Message = "Error Occured due to some issue";
return View("Error");
}
{
ViewBag.Message = "Error 401 Occured due to some issue";
return View("Error401");
}
{
ViewBag.Message = "Error 404Occured due to some issue";
return View("Error404");
}
}
Sachin SinghPosted Oct 20, 2020, 9:15 AM
Prathap GPosted Oct 20, 2020, 9:08 AM
Sachin SinghPosted Oct 20, 2020, 2:03 AM
property , and pass it in view or you can also create viewbag and pass it to view.I have just given you an idea.
Vikas JhaPosted Oct 20, 2020, 1:48 AM