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.

Sachin SinghRank #66 · 26.2K reputationPosted Oct 19, 2020, 10:03 PM EDT
property , and pass it in view or you can also create viewbag and pass it to view.I have just given you an idea.
Prathap G164 reputationPosted Oct 20, 2020, 5:08 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Oct 24, 2020, 8:05 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Oct 20, 2020, 5:15 AM EDT
Guest UserRank #1,654 · 929 reputationPosted Oct 24, 2020, 9:53 AM EDT
Prathap G164 reputationPosted Oct 26, 2020, 8:07 AM EDT
Id: @data.id
Prathap G164 reputationPosted Oct 27, 2020, 6:13 AM EDT
Vikas JhaRank #1,222 · 1.5K reputationPosted Oct 19, 2020, 9:48 PM EDT
Prathap G164 reputationPosted Oct 24, 2020, 7:22 AM EDT
{
// 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");
}
}