WP7: NullReferenceException unhandled in Catel.Core.dll

Topics: Issues / bugs
Mar 28, 2013 at 3:40 PM
Today I updated the Catel NuGet packages for my WP7 project, and the ServiceLocator.Default property throws a NullReferenceException.

Partial stacktrace:

at Catel.EnvironmentHelper.get_IsProcessHostedByVisualStudio()
at Catel.EnvironmentHelper.get_IsProcessHostedByTool()
at Catel.Reflection.StaticHelper.GetCallingType()
at Catel.Logging.LogManager.GetCurrentClassLogger()
at Catel.Argument..cctor()
at System.Lazy1..ctor(Func1 valueFactory)
at Catel.EnvironmentHelper..cctor()
at Catel.Reflection.StaticHelper.GetCallingType()
at Catel.Logging.LogManager.GetCurrentClassLogger()
at Catel.Logging.LogManager..cctor()
at Catel.Phone.Controls.PhoneApplicationPage..cctor()
Mar 30, 2013 at 6:44 AM
Edited Mar 30, 2013 at 6:45 AM
Thanks for reporting. We will look into this ASAP.

See https://catelproject.atlassian.net/browse/CTL-34
Apr 7, 2013 at 3:54 PM
Issue is fixed. Please try the latest nightly build.