title: Window app crashes
body: <p>Using one click publishing(VS2010) I publish my windows app.  Its a pretty simple application that uses only one 3rd party library: EntityFramework.  When it installs and runs it gens the following error in the event log:</p>
  
  <pre><code>Application: HNITPrinterMgtApp.exe
  Framework Version: v4.0.30319
  Description: The process was terminated due to an unhandled exception.
  Exception Info: System.Data.EntityException
  Stack:
     at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean,     System.Data.Common.DbConnection, System.Data.Common.DbConnection, System.String, System.String, Boolean ByRef)
     at System.Data.EntityClient.EntityConnection.Open()
     at System.Data.Objects.ObjectContext.EnsureConnection()
     at System.Data.Objects.ObjectQuery`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResults(System.Nullable`1&lt;System.Data.Objects.MergeOption&gt;)
     at System.Data.Objects.ObjectQuery`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].System.Collections.Generic.IEnumerable&lt;T&gt;.GetEnumerator()
     at System.Data.Entity.Internal.Linq.InternalQuery`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetEnumerator()
     at System.Data.Entity.Internal.Linq.InternalSet`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetEnumerator()
     at System.Data.Entity.Infrastructure.DbQuery`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].System.Collections.Generic.IEnumerable&lt;TResult&gt;.GetEnumerator()
     at System.Collections.Generic.List`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]..ctor(System.Collections.Generic.IEnumerable`1&lt;System.__Canon&gt;)
     at System.Linq.Enumerable.ToList[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1&lt;System.__Canon&gt;)
     at HNITPrinterMgtApp.Classes.UiPresenter.GetCurrentListOfPrinters()
     at HNITPrinterMgtApp.HNITPrinter.SetFormForTypeOfUser()
     at HNITPrinterMgtApp.HNITPrinter.DetermineTypeOfUser()
     at HNITPrinterMgtApp.HNITPrinter..ctor()
     at HNITPrinterMgtApp.Program.Main()
  </code></pre>
  
  <p>All the dll's are there that need to be... Not quite sure what I am missing... or what else I need to do....  </p>
  
  <p>If I am using EF with my windows app... should I use a different method of distribution?</p>