首页 新闻 会员 周边

wpf安装程序的问题

0
悬赏园豆:30 [已解决问题] 解决于 2012-08-13 00:06

最近写了一个程序,功能基本完成时生成了安装包,在自己电脑上安装测试,没问题。

一个星期后,程序完工,再次生成一个安装包,在自己电脑上安装,运行没问题。

但今天发给朋友时出现大问题:在朋友的电脑上能安装能卸载,就是一运行就提示关闭。。。安装程序的工程里只有依赖framework4.0,我朋友电脑安装framework后依然无法运行??这是什么问题,?

我爱吃鱼的主页 我爱吃鱼 | 初学一级 | 园豆:5
提问于:2012-08-09 18:08
< >
分享
最佳答案
0

提示关闭的错误是什么?

收获园豆:30
Bce | 菜鸟二级 |园豆:381 | 2012-08-10 09:13

我爱吃鱼 | 园豆:5 (初学一级) | 2012-08-10 11:27

@我爱吃鱼: 去系统日志看一下停止工作的原因

Bce | 园豆:381 (菜鸟二级) | 2012-08-10 11:38

@Bce: 

先谢谢了,两个日志记录,一个是程序本身错误,一个是.NET Runtime错误

 日志名称:          Application
来源:            Application Error
日期:            2012/8/10 星期五 13:31:26
事件 ID:         1000
任务类别:          (100)
级别:            错误
关键字:           经典
用户:            暂缺
计算机:           WIN-PC758G0DTKO
描述:
错误应用程序名称: CoordinatePositioningSystem.exe,版本: 1.0.0.0,时间戳: 0x502387f0
错误模块名称: KERNELBASE.dll,版本: 6.1.7601.17651,时间戳: 0x4e211319
异常代码: 0xe0434352
错误偏移量: 0x0000b9bc
错误进程 ID: 0x1870
错误应用程序启动时间: 0x01cd76b9629111b7
错误应用程序路径: C:\Program Files (x86)\Hewlett-Packard Company\轨迹平台测试系统\CoordinatePositioningSystem.exe
错误模块路径: C:\Windows\syswow64\KERNELBASE.dll
报告 ID: a07536fd-e2ac-11e1-8d47-64315088df7d
 
 日志名称:          Application
来源:            .NET Runtime
日期:            2012/8/10 星期五 13:31:26
事件 ID:         1026
任务类别:          无
级别:            错误
关键字:           经典
用户:            暂缺
计算机:           WIN-PC758G0DTKO
描述:
应用程序: CoordinatePositioningSystem.exe
Framework 版本: v4.0.30319
说明: 由于未经处理的异常,进程终止。
异常信息: System.Windows.Markup.XamlParseException
堆栈:
   在 System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
   在 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(System.Object)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   在 MS.Internal.Threading.ExceptionFilterHelper.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.runTryCode(System.Object)
   在 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
   在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   在 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)
   在 System.Windows.Threading.DispatcherOperation.Invoke()
   在 System.Windows.Threading.Dispatcher.ProcessQueue()
   在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   在 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   在 System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
   在 MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
   在 System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   在 System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
   在 System.Windows.Application.RunDispatcher(System.Object)
   在 System.Windows.Application.RunInternal(System.Windows.Window)
   在 System.Windows.Application.Run(System.Windows.Window)
   在 System.Windows.Application.Run()
   在 CoordinatePositioningSystem.App.Main()

我爱吃鱼 | 园豆:5 (初学一级) | 2012-08-10 13:38

@我爱吃鱼: 这个应该不是你的程序的问题,而是他机器运行环境的问题,有条件的话在那个环境下装一个vs2010调试一下看看

Bce | 园豆:381 (菜鸟二级) | 2012-08-11 18:55
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册