If Web.config contains errors, such as an unrecognized attribute it's difficult to determine the actual error without the inner exception since it basically reads the following:
ERROR: Could not load configuration. Either incorrect path was sent in or if no path was sent in web.config could not be found where expected
With this PR you can easily spot the error:
"Unrecognized attribute 'name'. Note that attribute names are case-sensitive. (C:\\Users\\user\\Documents\\GitHub\\www.mysite.no\\src\\www.mysite.no\\Web.config line 63)"
If
Web.config
contains errors, such as an unrecognized attribute it's difficult to determine the actual error without the inner exception since it basically reads the following:ERROR: Could not load configuration. Either incorrect path was sent in or if no path was sent in web.config could not be found where expected
With this PR you can easily spot the error:
"Unrecognized attribute 'name'. Note that attribute names are case-sensitive. (C:\\Users\\user\\Documents\\GitHub\\www.mysite.no\\src\\www.mysite.no\\Web.config line 63)"
/cc @turquoiseowl