Error after install: String not recognized as a valid Boolean

64 views
Skip to first unread message

MattBir...@gmail.com

unread,
Jan 8, 2008, 11:34:48 PM1/8/08
to ELMAH
I downloaded the file "ELMAH-1.0-Beta2-src". Placed the release
version of Elmah.dll in my Bin directory. I'm running Vista in dev,
and ran the "APPCMD.EXE migrate config" command to fix the web.config
settings to play nice in IIS7.0.

On restarting the web app, I receive the following error:

String was not recognized as a valid Boolean.
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: System.FormatException: String was not recognized
as a valid Boolean.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace:

[FormatException: String was not recognized as a valid Boolean.]
System.Boolean.Parse(String value) +2772264
Elmah.ErrorMailModule.OnInit(HttpApplication application) +176
Elmah.HttpModuleBase.System.Web.IHttpModule.Init(HttpApplication
context) +39
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
appContext) +256
System.Web.HttpApplication.InitSpecial(HttpApplicationState state,
MethodInfo[] handlers, IntPtr appContext, HttpContext context) +178

System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
appContext, HttpContext context) +270
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
appContext, IntPtr& errorMessage) +260

[HttpException (0x80004005): String was not recognized as a valid
Boolean.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
+3540923
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
+69

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
wr, HttpContext context) +669

Any & all help is appreciated.

-m+b
http://www.mattbirmingham.com

James_2JS

unread,
Jan 9, 2008, 6:05:02 AM1/9/08
to ELMAH
Hi Matt,

Can you supply the "elmah" section of your revised web.config please,
as that would help in assisting you??

Regards,

James

MattBir...@gmail.com

unread,
Jan 9, 2008, 7:00:28 PM1/9/08
to ELMAH
Egg on my face. As I pasted the code here, I saw:

<elmah>
<security ... />

<errorMail ... async="true|false" ...

Ummmm... yeah. true|false isn't a valid boolean, now is it!? To keep
other idiots like me from making a similar mistake, you might want to
set that value in the sample web.config.

Sorry for the false alarm.
Reply all
Reply to author
Forward
0 new messages