EDN Admin
Well-known member
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
i have the following class inheriting from ConfigurationSection
<pre class="x_default x_prettyprint x_prettyprinted" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b class<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ExceptionsConfiguration<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 :<span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ConfigurationSection<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b private<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b static<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ExceptionsConfiguration<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent _exceptionsconfig <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ConfigurationManager<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 .<span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af GetSection<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 (<span class="str" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 "ExceptionsConfig"<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 )<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b as<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ExceptionsConfiguration<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray /// <summary><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray /// Static accessible configuration<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray /// </summary><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b static<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ExceptionsConfiguration<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ExceptionsConfig<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b return<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent _exceptionsconfig<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //HTML message with the exception to be sent by email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af HTMLMessage<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //Subject of the email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af Subject<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //UserName of the email account to use<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af FromLabel<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //Password of the email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af Password<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //Email account used to send the email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af Email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //To account to send email with exception<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af To<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;}<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //Smtp server used to send the email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af SmtpServer<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;}<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //Port used to send the email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b int<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af Port<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;}<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }[/code][/code]
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
For other hand i declared my section on the web.config
<pre class="x_default x_prettyprint x_prettyprinted" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <configSections><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <section<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="atn" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#ff0000 name<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="atv" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#0000ff "ExceptionsConfig"<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="atn" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#ff0000 type<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="atv" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#0000ff "Framework.Web.Configuration.ExceptionsConfiguration"<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="atn" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#ff0000 allowLocation<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="atv" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#0000ff "true"<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="atn" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#ff0000 allowDefinition<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="atv" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#0000ff "Everywhere"<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 /><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </configSections><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <ExceptionsConfig<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="atn" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#ff0000 configSource<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="atv" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#0000ff "ConfigExceptionsConfig.config"<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 />[/code][/code]
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
And finally my configuration file:
<pre class="x_default x_prettyprint x_prettyprinted" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <ExceptionsConfig><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <HTMLMessage><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<![CDATA[
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent DataService:{0}<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent AvailableCategories:{1} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Queries:{2} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Exception:{3} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Is child action:{4} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Action executed:{5} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Controller executed:{6} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Current URL: {7} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Headers start <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent {8} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Headers end <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent IP adress: {9}
]]>
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </HTMLMessage><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <Subject><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Exception on www.<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </Subject><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <FromLabel><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Exception watcher from<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </FromLabel><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <Password><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent zzzzz<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </Password><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <Email><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent xxxxxx@xxxxx.com<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </Email><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <To><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent yyyyyy@yyyyyyy.com<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </To><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <SmtpServer><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent smtp.nnnnnnn.com<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </SmtpServer><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <Port><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent 000<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </Port><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </ExceptionsConfig>[/code][/code]
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Here the stack trace:
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
en Framework.Web.Configuration.ExceptionsConfigurationSection.get_ExceptionsConfiguration() en Framework.Web.Filters.ExceptionFilter.OnException(ExceptionContext filterContext) en C:inetpubwwwrootProjectsGeneric WebsiteFramework.WebFiltersExceptionFilter.cs:línea
19 en System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList<code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif 1
filters, Exception exception) en System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) en System.Web.Mvc.Controller.ExecuteCore() en System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
en System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) en System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5() en System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()
en System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8[/code]1.b_<em style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent 7(IAsyncResult[/i]) en System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
en System.Web.Mvc.MvcHandler.<>c_<em style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent DisplayClasse.b[/i]_d() en System.Web.Mvc.SecurityUtil.b__0(Action f) en System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action
action) en System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) en System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) en System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
en System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Im getting a type inizialization error for the class ExceptionsConfiguration... and the error says <strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent "Element HTMLMessage not recognized" .
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Could you give me a hand?
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Thanks
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Regards
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Jose
View the full article
i have the following class inheriting from ConfigurationSection
<pre class="x_default x_prettyprint x_prettyprinted" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b class<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ExceptionsConfiguration<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 :<span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ConfigurationSection<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b private<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b static<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ExceptionsConfiguration<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent _exceptionsconfig <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ConfigurationManager<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 .<span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af GetSection<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 (<span class="str" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 "ExceptionsConfig"<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 )<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b as<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ExceptionsConfiguration<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray /// <summary><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray /// Static accessible configuration<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray /// </summary><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b static<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ExceptionsConfiguration<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af ExceptionsConfig<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b return<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent _exceptionsconfig<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //HTML message with the exception to be sent by email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af HTMLMessage<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //Subject of the email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af Subject<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //UserName of the email account to use<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af FromLabel<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //Password of the email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af Password<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //Email account used to send the email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af Email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //To account to send email with exception<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af To<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;}<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //Smtp server used to send the email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b string<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af SmtpServer<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;}<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="com" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:gray //Port used to send the email<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b public<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b int<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="typ" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#2b91af Port<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 {<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b get<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;<span class="kwd" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#00008b set<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 ;}<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 }[/code][/code]
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
For other hand i declared my section on the web.config
<pre class="x_default x_prettyprint x_prettyprinted" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <configSections><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <section<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="atn" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#ff0000 name<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="atv" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#0000ff "ExceptionsConfig"<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="atn" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#ff0000 type<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="atv" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#0000ff "Framework.Web.Configuration.ExceptionsConfiguration"<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="atn" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#ff0000 allowLocation<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="atv" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#0000ff "true"<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="atn" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#ff0000 allowDefinition<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="atv" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#0000ff "Everywhere"<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 /><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </configSections><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <ExceptionsConfig<span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent <span class="atn" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#ff0000 configSource<span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#000000 =<span class="atv" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#0000ff "ConfigExceptionsConfig.config"<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 />[/code][/code]
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
And finally my configuration file:
<pre class="x_default x_prettyprint x_prettyprinted" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <ExceptionsConfig><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <HTMLMessage><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<![CDATA[
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent DataService:{0}<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent AvailableCategories:{1} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Queries:{2} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Exception:{3} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Is child action:{4} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Action executed:{5} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Controller executed:{6} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Current URL: {7} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Headers start <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent {8} <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Headers end <span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent IP adress: {9}
]]>
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </HTMLMessage><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <Subject><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Exception on www.<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </Subject><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <FromLabel><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent Exception watcher from<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </FromLabel><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <Password><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent zzzzz<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </Password><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <Email><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent xxxxxx@xxxxx.com<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </Email><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <To><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent yyyyyy@yyyyyyy.com<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </To><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <SmtpServer><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent smtp.nnnnnnn.com<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </SmtpServer><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 <Port><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent 000<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </Port><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent
<span class="tag" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; color:#800000 </ExceptionsConfig>[/code][/code]
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Here the stack trace:
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
en Framework.Web.Configuration.ExceptionsConfigurationSection.get_ExceptionsConfiguration() en Framework.Web.Filters.ExceptionFilter.OnException(ExceptionContext filterContext) en C:inetpubwwwrootProjectsGeneric WebsiteFramework.WebFiltersExceptionFilter.cs:línea
19 en System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList<code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif 1
filters, Exception exception) en System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) en System.Web.Mvc.Controller.ExecuteCore() en System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
en System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) en System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5() en System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()
en System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8[/code]1.b_<em style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent 7(IAsyncResult[/i]) en System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
en System.Web.Mvc.MvcHandler.<>c_<em style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent DisplayClasse.b[/i]_d() en System.Web.Mvc.SecurityUtil.b__0(Action f) en System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action
action) en System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) en System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) en System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
en System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Im getting a type inizialization error for the class ExceptionsConfiguration... and the error says <strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent "Element HTMLMessage not recognized" .
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Could you give me a hand?
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Thanks
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Regards
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Jose
View the full article