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 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘