parush / elmah

Automatically exported from code.google.com/p/elmah
0 stars 0 forks source link

errorMail - required 'cc' field missing (should not be required) #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Uncomment ErrorMail httpModule in web.config
2. Set <errorMail /> in the web.config without the cc field
3. View the web application from a browser

What is the expected output? What do you see instead?
Expected: No errors, the application should run normally.

Actual Result: The following Error is displayed:

The required configuration setting 'cc' is missing for the error mailing
module.

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: Elmah.ApplicationException: The required configuration
setting 'cc' is missing for the error mailing module.

Source Error:

Line 678:                if (defaultValue == null)
Line 679:                {
Line 680:                    throw new ApplicationException(string.Format(
Line 681:                        "The required configuration setting '{0}'
is missing for the error mailing module.", name));
Line 682:                }

Source File: c:\Documents and
Settings\gerdesj\Desktop\ELMAH-SVN\src\Elmah\ErrorMailModule.cs    Line: 680

Stack Trace:

[ApplicationException: The required configuration setting 'cc' is missing
for the error mailing module.]
   Elmah.ErrorMailModule.GetSetting(IDictionary config, String name, String
defaultValue) in c:\Documents and
Settings\gerdesj\Desktop\ELMAH-SVN\src\Elmah\ErrorMailModule.cs:680
   Elmah.ErrorMailModule.OnInit(HttpApplication application) in
c:\Documents and
Settings\gerdesj\Desktop\ELMAH-SVN\src\Elmah\ErrorMailModule.cs:132
   Elmah.HttpModuleBase.System.Web.IHttpModule.Init(HttpApplication
context) in c:\Documents and
Settings\gerdesj\Desktop\ELMAH-SVN\src\Elmah\HttpModuleBase.cs:54
   System.Web.HttpApplication.InitModulesCommon() +66
   System.Web.HttpApplication.InitInternal(HttpContext context,
HttpApplicationState state, MethodInfo[] handlers) +814

System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext
context) +243
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +106
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +340

What version of the product are you using? On what operating system?
svn build 1.0.8925.1000

Please provide any additional information below.
This field should be an optional field.

Original issue reported on code.google.com by joshger...@gmail.com on 24 Sep 2007 at 3:59

GoogleCodeExporter commented 9 years ago

Original comment by azizatif on 24 Sep 2007 at 9:19

GoogleCodeExporter commented 9 years ago

Original comment by azizatif on 24 Sep 2007 at 9:20

GoogleCodeExporter commented 9 years ago
Note that previous status change was a typo. Indented was Started as in this 
case.

Original comment by azizatif on 24 Sep 2007 at 9:20

GoogleCodeExporter commented 9 years ago
Fixed in r156. Thanks.

Original comment by azizatif on 24 Sep 2007 at 9:25