.NET Windows 7 部署:添加事件查看器条目时出错

发布于 2024-09-28 07:08:22 字数 2229 浏览 4 评论 0原文

我的 WPF 应用程序在其他机器上运行良好。然而,当我将它部署在 64 位 Win7 机器上时,它在尝试在事件查看器中添加条目时崩溃了。我可以检索以下错误详细信息。有什么想法吗?请帮忙。

Log Name:      Application
Source:        Application Error
Date:          10/21/2010 2:47:39 PM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      CB-PC
Description:
Faulting application name: AD.exe, version: 1.0.0.0, time stamp: 0x4cbfcc08
Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdbdf
Exception code: 0xe0434352
Fault offset: 0x0000b727
Faulting process id: 0x600
Faulting application start time: 0x01cb7100c99f983c
Faulting application path: C:\Users\CB\AppData\Local\Apps\2.0\5VYKZRYR.PMG\PPMYKDWV.HJP\astr..tion_12ef0d73603d5a5a_0001.0000_0db54ee8dff50ae1\AstroDesktop.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 0cac026a-dcf4-11df-8104-70f3958642a5
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2010-10-21T09:17:39.000000000Z" />
    <EventRecordID>1517</EventRecordID>
    <Channel>Application</Channel>
    <Computer>CB-PC</Computer>
    <Security />
  </System>
  <EventData>
    <Data>AD.exe</Data>
    <Data>1.0.0.0</Data>
    <Data>4cbfcc08</Data>
    <Data>KERNELBASE.dll</Data>
    <Data>6.1.7600.16385</Data>
    <Data>4a5bdbdf</Data>
    <Data>e0434352</Data>
    <Data>0000b727</Data>
    <Data>600</Data>
    <Data>01cb7100c99f983c</Data>
    <Data>C:\Users\CB\AppData\Local\Apps\2.0\5VYKZRYR.PMG\PPMYKDWV.HJP\astr..tion_12ef0d73603d5a5a_0001.0000_0db54ee8dff50ae1\AD.exe</Data>
    <Data>C:\Windows\syswow64\KERNELBASE.dll</Data>
    <Data>0cac026a-dcf4-11df-8104-70f3958642a5</Data>
  </EventData>
</Event>

My WPF application works fine on other machines. However when i deployed it on a 64-bit Win7 box it crashed when attempting to add an entry in the eventviewer. I could retrieve the following error details. Any ideas? Please help.

Log Name:      Application
Source:        Application Error
Date:          10/21/2010 2:47:39 PM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      CB-PC
Description:
Faulting application name: AD.exe, version: 1.0.0.0, time stamp: 0x4cbfcc08
Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdbdf
Exception code: 0xe0434352
Fault offset: 0x0000b727
Faulting process id: 0x600
Faulting application start time: 0x01cb7100c99f983c
Faulting application path: C:\Users\CB\AppData\Local\Apps\2.0\5VYKZRYR.PMG\PPMYKDWV.HJP\astr..tion_12ef0d73603d5a5a_0001.0000_0db54ee8dff50ae1\AstroDesktop.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 0cac026a-dcf4-11df-8104-70f3958642a5
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2010-10-21T09:17:39.000000000Z" />
    <EventRecordID>1517</EventRecordID>
    <Channel>Application</Channel>
    <Computer>CB-PC</Computer>
    <Security />
  </System>
  <EventData>
    <Data>AD.exe</Data>
    <Data>1.0.0.0</Data>
    <Data>4cbfcc08</Data>
    <Data>KERNELBASE.dll</Data>
    <Data>6.1.7600.16385</Data>
    <Data>4a5bdbdf</Data>
    <Data>e0434352</Data>
    <Data>0000b727</Data>
    <Data>600</Data>
    <Data>01cb7100c99f983c</Data>
    <Data>C:\Users\CB\AppData\Local\Apps\2.0\5VYKZRYR.PMG\PPMYKDWV.HJP\astr..tion_12ef0d73603d5a5a_0001.0000_0db54ee8dff50ae1\AD.exe</Data>
    <Data>C:\Windows\syswow64\KERNELBASE.dll</Data>
    <Data>0cac026a-dcf4-11df-8104-70f3958642a5</Data>
  </EventData>
</Event>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅浅淡淡 2024-10-05 07:08:22

创建事件日志需要比向其中添加事件更高的权限。让您的安装应用程序创建事件日志,而不是编写“如果日志不存在,则创建它”。

You need higher perms to create the event log than to add an event to it. Get your install app to create the event log instead of when you write "if the log doesn't exist, create it."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文