C# WPF部署错误

C# WPF部署错误,c#,wpf,deployment,setup-deployment,C#,Wpf,Deployment,Setup Deployment,我已经编写了一个在后端使用SQLServerExpress的小WPF应用程序。我已经使用InstallShield为应用程序创建了一个设置和部署项目 我把它部署到一台笔记本电脑上,笔记本电脑上也有数据库。直到最近,这项技术一直运作良好 变化是,以前我使用Visual Studio 2012并安装Shield 2010,然后升级到V.S 2013并安装Shield 2015 通过这样做,然后部署应用程序,我得到了以下结果:- 应用程序的登录表单仍然正确加载,但在尝试登录后,我看到标准Windows

我已经编写了一个在后端使用SQLServerExpress的小WPF应用程序。我已经使用InstallShield为应用程序创建了一个设置和部署项目

我把它部署到一台笔记本电脑上,笔记本电脑上也有数据库。直到最近,这项技术一直运作良好

变化是,以前我使用Visual Studio 2012并安装Shield 2010,然后升级到V.S 2013并安装Shield 2015

通过这样做,然后部署应用程序,我得到了以下结果:-

应用程序的登录表单仍然正确加载,但在尝试登录后,我看到标准Windows已停止工作对话框

奇怪的是,如果我重新安装用VS2012和I.S 2010创建的旧安装程序,它实际上运行正常

旧安装程序和新安装程序相同

我从事件查看器获得的唯一信息是System.IO.FileNotFound异常,尽管没有关于什么或在哪里的实际指示

笔记本电脑上可能有什么东西损坏了吗?我觉得很奇怪,我可以重新安装旧的安装程序,它可以正常工作,但新的不能

我的应用程序中有以下异常处理程序,但没有一个启动

 void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)

 void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)

 void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)

 void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)

 void WinFormApplication_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
谁能给我一些建议吗

下面是事件查看器错误

Log Name:      Application
Source:        .NET Runtime
Date:          26/08/2015 7:44:55 PM
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      Name
Description:
Application: ACS.SampleReceiptRegister.UI.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
   at ACS.SampleReceiptRegister.UI.MainWindow..ctor()
   at ACS.SampleReceiptRegister.UI.App.OnStartup(System.Windows.StartupEventArgs)
   at System.Windows.Application.<.ctor>b__1(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 System.Windows.Application.Run()
   at ACS.SampleReceiptRegister.UI.App.Main()
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1026</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-08-26T09:44:55.000000000Z" />
    <EventRecordID>2502</EventRecordID>
    <Channel>Application</Channel>
    <Computer>Name</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Application: ACS.SampleReceiptRegister.UI.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
   at ACS.SampleReceiptRegister.UI.MainWindow..ctor()
   at ACS.SampleReceiptRegister.UI.App.OnStartup(System.Windows.StartupEventArgs)
   at System.Windows.Application.&lt;.ctor&gt;b__1(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 System.Windows.Application.Run()
   at ACS.SampleReceiptRegister.UI.App.Main()
</Data>
  </EventData>
</Event>

您缺少一个dll。显示应用程序事件日志中的错误。检查您的笔记本电脑上是否安装了VC++2013可再发行版本2013可再发行版本不存在,但安装它没有帮助。我再也看不到Windows已停止工作的弹出窗口,但在尝试登录到repair/update您的.NET framework安装后什么都没有