WP7: NullReferenceException unhandled in Catel.Core.dll

Topics: Issues / bugs
Mar 28, 2013 at 2: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()
Coordinator
Mar 30, 2013 at 5:44 AM
Edited Mar 30, 2013 at 5:45 AM
Thanks for reporting. We will look into this ASAP.

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