none
WPF Entity Framework Application crashing on deploy RRS feed

  • Question

  • I am deploying a custom built WPF / Entity Framework Application in house. I currently have a handful of machines, where  the application is crashing. Below are the error details. The application is targeting the 4.5.2 framework, which is installed on all of the workstations, Working and Not. I'm at a bit of a loss as to why this is happening

    Crash Details:

    Problem signature:

      Problem Event Name:                        CLR20r3

      Problem Signature 01:                       InterviewerScheduler.exe

      Problem Signature 02:                       2.0.0.0

      Problem Signature 03:                       58a5d35f

      Problem Signature 04:                       System.Data

      Problem Signature 05:                       4.0.30319.36373

      Problem Signature 06:                       583fdb21

      Problem Signature 07:                       25bd

      Problem Signature 08:                       27

      Problem Signature 09:                       System.Data.Entity.Core.Entity

      OS Version:                                          6.1.7601.2.1.0.256.4

      Locale ID:                                             1033

      Additional Information 1:                  0a9e

      Additional Information 2:                  0a9e372d3b4ad19135b953a78882e789

      Additional Information 3:                  0a9e

      Additional Information 4:                  0a9e372d3b4ad19135b953a78882e789

    Corresponding Event Log Entries:

    Application: InterviewerScheduler.exe

    Framework Version: v4.0.30319

    Description: The process was terminated due to an unhandled exception.

    Exception Info: System.Data.Entity.Core.EntityException

    Stack:

       at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Func`1<System.__Canon>)

       at System.Data.Entity.Core.Objects.ObjectQuery`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResults(System.Nullable`1<System.Data.Entity.Core.Objects.MergeOption>)

       at System.Data.Entity.Core.Objects.ObjectQuery`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()

       at System.Data.Entity.Internal.LazyEnumerator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()

       at System.Collections.Generic.List`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]..ctor(System.Collections.Generic.IEnumerable`1<System.__Canon>)

       at System.Linq.Enumerable.ToList[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.__Canon>)

       at InterviewerScheduler.DataAccess.GetCurrentUserInfo()

       at InterviewerScheduler.SystemCode.initializeSystem()

       at InterviewerScheduler.MainWindow.Window_Loaded(System.Object, System.Windows.RoutedEventArgs)

       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)

       at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)

       at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)

       at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)

       at System.Windows.BroadcastEventHelper.BroadcastEvent(System.Windows.DependencyObject, System.Windows.RoutedEvent)

       at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(System.Object)

       at MS.Internal.LoadedOrUnloadedOperation.DoWork()

       at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()

       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)

       at System.Windows.Media.MediaContext.RenderMessageHandler(System.Object)

       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)

       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)

       at System.Windows.Threading.DispatcherOperation.InvokeImpl()

       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)

       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)

       at System.Windows.Threading.DispatcherOperation.Invoke()

       at System.Windows.Threading.Dispatcher.ProcessQueue()

       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

       at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)

       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)

       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)

       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)

       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

       at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)

       at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)

       at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)

       at System.Windows.Threading.Dispatcher.Run()

       at System.Windows.Application.RunDispatcher(System.Object)

       at System.Windows.Application.RunInternal(System.Windows.Window)

       at System.Windows.Application.Run(System.Windows.Window)

       at InterviewerScheduler.Application.Main()

    Monday, February 20, 2017 9:18 PM

Answers

  • Thanks for the extra eyes. 

    I have solved this issue, It was related to SQL Server Permissions per each of the affected users. Once added issue went away.
    • Marked as answer by JohnOkula Tuesday, February 21, 2017 3:56 PM
    Tuesday, February 21, 2017 3:56 PM

All replies

  • Hard to say but it looks like the offender is

    at InterviewerScheduler.DataAccess.GetCurrentUserInfo()


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Monday, February 20, 2017 9:52 PM
    Moderator
  • Hi JohnOkula,

    Thank you for posting here.

    I would suggest that you can set breakpoints to debug your code, find the error message. And post your code, related error message or some screenshots. It will help us analyze and diagnose this issue more clearly.

    Best Regards,

    Neda Zhang


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, February 21, 2017 8:16 AM
    Moderator
  • John,

    Telling that you have "a handful of machines" tells as much as to a plumber that you know some addresses where the water tap is dripping. 

    You have to be more specific. Be aware this is a program language forum. Your problem has probably more to do with the way the OS is configured or what OS is used. 


    Success
    Cor

    Tuesday, February 21, 2017 8:20 AM
  • Thanks for the extra eyes. 

    I have solved this issue, It was related to SQL Server Permissions per each of the affected users. Once added issue went away.
    • Marked as answer by JohnOkula Tuesday, February 21, 2017 3:56 PM
    Tuesday, February 21, 2017 3:56 PM