# Debugging app not started from windows store install

**URL:** <https://discourse.softwarebydesign.com.au/t/debugging-app-not-started-from-windows-store-install/1562>\
**Category:** Code\
**Created:** [13 December 2018 21:04 UTC](https://discourse.softwarebydesign.com.au/t/debugging-app-not-started-from-windows-store-install/1562 "2018-12-13T21:04:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirsten\_Greed](https://discourse.softwarebydesign.com.au/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@Kirsten\_Greed](https://discourse.softwarebydesign.com.au/u/Kirsten_Greed)\
**Post date:** [13 December 2018 21:04 UTC](https://discourse.softwarebydesign.com.au/t/debugging-app-not-started-from-windows-store-install/1562/1 "2018-12-13T21:04:57Z")

</div>

After installing the app from the store it would not run.  
Looking in the Event Log I saw

```c#
Application: SBD.JobTalk.Workflow.Win10.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
   at SBD.JobTalk.Workflow.Module.WorkflowModule..cctor()

Exception Info: System.TypeInitializationException
   at SBD.JobTalk.Workflow.Module.WorkflowModule..ctor()
   at SBD.JobTalk.Workflow.Win.WorkflowWindowsFormsApplication.InitializeComponent()
   at SBD.JobTalk.Workflow.Win.WorkflowWindowsFormsApplication..ctor()
   at SBD.JobTalk.Workflow.Win.Program.Main()

```

I uninstalled the app and opened it in Visual Studio. There was no problem running in the debug mode.  
However when I switched to Release mode and pressed F5 I got more information

 ![image](https://discourse.softwarebydesign.com.au/uploads/default/original/2X/7/7ddd44594e57851d3e9155c4c7a11653e27f8fea.png)

![image](https://discourse.softwarebydesign.com.au/uploads/default/original/2X/5/50f4d4481cf224a7af137f07f8632ed13c678cf2.png)

I clicked copy details and pasted to notepad

```c#
System.TypeInitializationException
  HResult=0x80131534
  Message=The type initializer for 'SBD.JobTalk.Workflow.Module.WorkflowModule' threw an exception.
  Source=SBD.JobTalk.Workflow.Module
  StackTrace:
   at SBD.JobTalk.Workflow.Module.WorkflowModule..ctor() in d:\dev\SBD.JobTalk.Workflow\SBD.JobTalk.Workflow.Module\Module.cs:line 35
   at SBD.JobTalk.Workflow.Win.WorkflowWindowsFormsApplication.InitializeComponent() in d:\dev\SBD.JobTalk.Workflow\SBD.JobTalk.Workflw.Win.Shared\WinApplication.Designer.cs:line 28
   at SBD.JobTalk.Workflow.Win.WorkflowWindowsFormsApplication..ctor() in d:\dev\SBD.JobTalk.Workflow\SBD.JobTalk.Workflw.Win.Shared\WinApplication.cs:line 31
   at SBD.JobTalk.Workflow.Win.Program.Main() in d:\dev\SBD.JobTalk.Workflow\SBD.JobTalk.Workflw.Win.Shared\Program.cs:line 29

```

The exact same message as I saw in the event log. Bingo!

> I just noticed when I click Copy Details, Resharper’s Stack Trace Explorer pops up!

Looks like need to add EntityFramework.SqlServer to the references.
