Thanx icon, that was helpful. I really wanted to ask, โhow to get the defaultRedirect propertyโ of the customErrors section from the web.config of my asp mvc application? "
And the answer to your post:
CustomErrorsSection customErrorsSection = (CustomErrorsSection) ConfigurationManager.GetSection("system.web/customErrors"); string defaultRedirect = customErrorsSection.DefaultRedirect;
source share