gripleaf 2016-12-16 02:21 采纳率: 0%
浏览 2788
已结题

vs2015在win7环境下编译wpf 无法运行

我在工作机环境下编译WPF项目,然后也能正常运行,但是当我将发布后的项目拷到另一台未安装VS2015但.net环境为4.6时无法运行,会抛以下异常,但是安装VS2015之后就可以正常运行。

应用程序: ceshi.heping.exe
Framework 版本: v4.0.30319
说明: 由于未经处理的异常,进程终止。
异常信息: System.IO.FileNotFoundException
在 Shenghe.Hebao.MainWindow..ctor()

异常信息: System.Windows.Markup.XamlParseException
在 System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
在 System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
在 System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
在 System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
在 System.Windows.Application.LoadComponent(System.Uri, Boolean)
在 System.Windows.Application.DoStartup()
在 System.Windows.Application.<.ctor>b__1_0(System.Object)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
在 System.Windows.Threading.DispatcherOperation.InvokeImpl()
在 System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
在 MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
在 System.Windows.Threading.DispatcherOperation.Invoke()
在 System.Windows.Threading.Dispatcher.ProcessQueue()
在 System.Windows.Threading.Dispatcher.WndProcHoo

错误应用程序名称: ceshi.heping.exe,版本: 1.0.0.0,时间戳: 0x5821d354
错误模块名称: KERNELBASE.dll,版本: 6.1.7601.18015,时间戳: 0x50b83c8a
异常代码: 0xe0434352
错误偏移量: 0x0000c41f
错误进程 ID: 0xdfc
错误应用程序启动时间: 0x01d2553c441a0047
错误应用程序路径: C:\Users\Wang\Desktop\ceshi.heping.exe
错误模块路径: C:\Windows\syswow64\KERNELBASE.dll
报告 ID: 820f639f-c12f-11e6-b426-10bf4805993b

我的工作机环境:
IDE:VS 2015 Professional
操作系统:win7
编译环境:C#6.0和 .net4.5.2
项目:WPF

运行环境:
操作系统:win7 带 .net 4.6

  • 写回答

3条回答 默认 最新

  • 丶Alsya 2016-12-16 02:40
    关注

    但是安装VS2015之后就可以正常运行。 为什么不去比对一些 VS 给你安装了那些运行环境呢?

    评论

报告相同问题?

悬赏问题

  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)
  • ¥20 matlab yalmip kkt 双层优化问题
  • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多