在有VS的环境下,程序能正常运行,没有的情况下会报错(都有.net framework4.0环境),错误日志如下

问题描述

日志名称:Application来源:.NETRuntime日期:2/28/159:24:46PM事件ID:1026任务类别:无级别:错误关键字:经典用户:暂缺计算机:VICTORMBFF5描述:应用程序:GUIApplication.exeFramework版本:v4.0.30319说明:由于未经处理的异常,进程终止。异常信息: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(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.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)在System.Windows.Threading.DispatcherOperation.Invoke()在System.Windows.Threading.Dispatcher.ProcessQueue()在System.Windows.Threading.Dispatcher.WndProcHook(IntPtr,Int32,IntPtr,IntPtr,BooleanByRef)在MS.Win32.HwndWrapper.WndProc(IntPtr,Int32,IntPtr,IntPtr,BooleanByRef)在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.LegacyInvokeImpl(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.MSGByRef)在System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)在System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)在System.Windows.Threading.Dispatcher.Run()在System.Windows.Application.RunDispatcher(System.Object)在System.Windows.Application.RunInternal(System.Windows.Window)在System.Windows.Application.Run(System.Windows.Window)在GUI_Application.App.Main()事件Xml:<Eventxmlns="http://schemas.microsoft.com/win/2004/08/events/event"><System><ProviderName=".NETRuntime"/><EventIDQualifiers="0">1026</EventID><Level>2</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreatedSystemTime="2015-03-01T03:24:46.000000000Z"/><EventRecordID>3645</EventRecordID><Channel>Application</Channel><Computer>VICTORMBFF5</Computer><Security/></System><EventData><Data>应用程序:GUIApplication.exeFramework版本:v4.0.30319说明:由于未经处理的异常,进程终止。异常信息: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.&lt;.ctor&gt;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.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)在System.Windows.Threading.DispatcherOperation.Invoke()在System.Windows.Threading.Dispatcher.ProcessQueue()在System.Windows.Threading.Dispatcher.WndProcHook(IntPtr,Int32,IntPtr,IntPtr,BooleanByRef)在MS.Win32.HwndWrapper.WndProc(IntPtr,Int32,IntPtr,IntPtr,BooleanByRef)在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.LegacyInvokeImpl(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.MSGByRef)在System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)在System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)在System.Windows.Threading.Dispatcher.Run()在System.Windows.Application.RunDispatcher(System.Object)在System.Windows.Application.RunInternal(System.Windows.Window)在System.Windows.Application.Run(System.Windows.Window)在GUI_Application.App.Main()</Data></EventData></Event>错误应用程序名称:GUIApplication.exe,版本:1.0.0.0,时间戳:0x54f26dc5错误模块名称:KERNELBASE.dll,版本:6.1.7601.17514,时间戳:0x4ce7b8f0异常代码:0xe0434352错误偏移量:0x0000b760错误进程ID:0x12e4错误应用程序启动时间:0x01d053cf4446aad0错误应用程序路径:\psfHomeDesktopDebugapp.publishGUIApplication.exe错误模块路径:C:Windowssystem32KERNELBASE.dll报告ID:82311970-bfc2-11e4-89b1-001c42abd07d如果安装后错误就消失,请问如何才能解决,谢谢!

解决方案

解决方案二:
是不是用到了管理员权限的组件了。
解决方案三:
管理员权限也是报同样的错误额

时间: 2024-08-31 04:41:43

在有VS的环境下,程序能正常运行,没有的情况下会报错(都有.net framework4.0环境),错误日志如下的相关文章

C# 写的Winform页面下载程序 在没有抛出异常的情况下退出程序

问题描述 C#写的Winform页面下载程序在没有抛出异常的情况下退出程序但是线程依然存在请问一下当正常与不正常的情况下,程序是不是都会通过CLoseing的事件退出程序呢谢谢~~!!在线等 解决方案 解决方案二:不一定,有些异常直接就强制退出程序,并没有执行Closing事件你trycatch一下吧解决方案三:有时是直接退出进程了解决方案四:关于正常退出程序,线程还没有退出的问题,你可以定义一个全局变量如boolm_bExited=false;在窗体Closed事件里把m_bExited=tr

android系统-android中当一个Activity启动后什么情况下会被destroy,什么情况下onstop

问题描述 android中当一个Activity启动后什么情况下会被destroy,什么情况下onstop android中当一个Activity启动后什么情况下会被destroy,什么情况下onstop 点击返回键是destroy还是onstop 如果是destroy那么什么情况下onstop 如果是onstop什么情况下destroy 解决方案 切换的时候会onstop,如果内存不足,程序出错,或者用户关闭,会destroy 解决方案二: 楼主你该重新学习下Activity的生命周期

visual studio-VS2013在运行程序的时候,如果内存不够会报错吗?

问题描述 VS2013在运行程序的时候,如果内存不够会报错吗? 运行一个程序出来的结果和预想的有些出入,在考虑是不是运行的时候出现了内存不够的情况,却没提示? 解决方案 一般不会,如果是栈上的内存不够,编译的时候就会提示.如果是堆上的内存不够,一般会卡住,不会继续执行.栈上的内存一般几兆到几十兆.堆上一根据你的编译器,内存情况,一般几G吧,但是可以开启大内存. 解决方案二: 如果是int a[12];声明之后,调用a[15] = 1后,就可能造成程序崩溃,和预想的结果有出入,很可能是代码逻辑有问

linux下php添加mysqli拓展库时,编译报错

问题描述 linux下php添加mysqli拓展库时,编译报错 php和mysql都是已经编译安装好了,现在想要给php添加mysqli 拓展库,结果在make的时候报错 cd /usr/local/src/php-5.6.19/ext/mysqli /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-mysqli=/usr/local/mysql/bin/mys

急!用jdbc中executeQuery()方法执行查询为什么在程序中停顿很长时间,甚至报错。

问题描述 急!用jdbc中executeQuery()方法执行查询为什么在程序中停顿很长时间,甚至报错. 程序中的sql如以下: select t3.*,t1.costPrice as costP,t1.retailPrice as retailP,t1.basicPricing as basicP from goodsGroupCopy t1 left join groupCopyGoods t2 on t1.id = t2.goodsGroupCopyId left join goods t

c# net windowsform-C# W7 x64 :VS2010 windowsform程序 导入EXCEL报错 Microsoft.Jet.OLEDB.4.0

问题描述 C# W7 x64 :VS2010 windowsform程序 导入EXCEL报错 Microsoft.Jet.OLEDB.4.0 编译项目指定目标平台为x86: 生成->配置管理器->平台->点击Any Cpu选项卡->新建->新建平台->X86, 没有找到"->新建->新建平台->X86" 报错: system.invalidoperationexception 未在此计算机上注册:Microsoft.Jet.OLED

在树莓派(Raspbian系统)下安装open,编译时,cap_ffmpeg.cpp报错不通过

问题描述 在树莓派(Raspbian系统)下安装open,编译时,cap_ffmpeg.cpp报错不通过 如题,已经两天了!在试了opencv2.4.9,2.4.10,2.3.1三个版本,在make时都是在 同一个地方报错,下贴上报错的内容 modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:215: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/sr

在ubuntu 下运行一个java webapp项目,tomcat6控制台报错

问题描述 报错信息如下:java.io.IOException: Cannot run program "ipconfig": java.io.IOException: error=2, No such file or directoryat java.lang.ProcessBuilder.start(ProcessBuilder.java:460)at java.lang.Runtime.exec(Runtime.java:593)at java.lang.Runtime.exec

可以在eclipse运行的程序打包后 使用一些功能就会报错

问题描述 入口函数在CommandLineRunner里面,其中调用了MyCheckUnreachableCode_tijiao的MyCheckUnreachableCode方法,来检查一些不可达代码,程序在eclipse中配置好参数运行正常.但是将源码打包后(打包工具用的这个开源项目自身写好的一个build.xml文件,直接用antbuild而成),如果不加参数会提示usge()的内容,但是一旦加了一个参数就会报:D:mycoderclosure-compilerbuild>java-jarc