public void CheckVersion() { try { if (!VersionIsLatest && ServerVersion != DismissedVersion && !ServerVersion.IsNotSet()) { _eventAggregator.PublishOnUIThread(new NewVersionEvent(ServerVersion, DownloadUrl)); } } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message + "\r\n" + ex.StackTrace); Log.Error("Class: {0} Method: {1} Exception: {2} Stacktrace: {3}", "VersionCheck", "CheckVersion", ex.Message, ex.StackTrace); } }