davidwhitney / System.Configuration.Abstractions

Injectable, mockable, extensible, configuration for .NET
MIT License
42 stars 7 forks source link

Exception #1

Closed kfrancis closed 10 years ago

kfrancis commented 10 years ago

Hmm, I'm trying to use this in a service project being deployed to many computers and I'm unable to get it running anywhere but my machine. This is the exception I'm getting out in the wild:

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Configuration.ConfigurationErrorsException
Stack:
   at System.Configuration.Abstractions.AppSettingsExtended.AppSetting[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.String, System.Func`1<System.__Canon>)
   at Automator.Program.Main()

Any ideas?

kfrancis commented 10 years ago

Actually, it looks like this is due to one of the appsetting keys not existing - though it would be useful to see that information in the exception message.

kfrancis commented 10 years ago

Nevermind. I see it does that. I'm not sure why the event log doesn't show that same useful error.

davidwhitney commented 10 years ago

Thanks for leaving a note about this - I'll take a look at the event log output - see if I can make this a bit more obvious and less confusing to people in future :)