扩展事件日志消息时遇到问题
我试图将一些扩展错误代码添加到事件日志中,但出现以下错误。
事件 ID ( 109 ) 的描述 在源(PumpServer)中不能 成立。本地电脑可能没有 必要的注册表信息或 用于显示消息的消息 DLL 文件 从远程计算机。你可能是 能够使用 /AUXSOURCE= 标志 检索该描述;查看帮助 和支持详细信息。下列 信息是活动的一部分: 事件日志文件已损坏..
消息文件如下所示,我在末尾添加了一个:-
<---snip--->
MessageId=
SymbolicName=EVMSG_BADREQUEST
Language=English
The service received an unsupported request.
.
MessageId=
SymbolicName=EVMSG_DEBUG
Language=English
%1
.
MessageId=
SymbolicName=EVMSG_STOPPED
Language=English
The service was stopped.
.
MessageId=
SymbolicName=EVMSG_INVALIDLICENCE
Language=English
The service does not have a valid licence. Initialization failed.
.
它编译得很好。 mc 程序正在该文件上运行,并生成一个同名的头文件,其中显示了我的新消息 ID。
//
// MessageId: EVMSG_INVALIDLICENCE
//
// MessageText:
//
// The service does not have a valid licence. Initialization failed.
//
#define EVMSG_INVALIDLICENCE 0x0000006DL
知道为什么它找不到我的消息吗?其他人都工作。
I'm trying to add some extended error codes to the event log but I get the following error.
The description for Event ID ( 109 )
in Source ( PumpServer ) cannot be
found. The local computer may not have
the necessary registry information or
message DLL files to display messages
from a remote computer. You may be
able to use the /AUXSOURCE= flag to
retrieve this description; see Help
and Support for details. The following
information is part of the event: The
event log file is corrupt..
The message file looks like this and I added the one on the end:-
<---snip--->
MessageId=
SymbolicName=EVMSG_BADREQUEST
Language=English
The service received an unsupported request.
.
MessageId=
SymbolicName=EVMSG_DEBUG
Language=English
%1
.
MessageId=
SymbolicName=EVMSG_STOPPED
Language=English
The service was stopped.
.
MessageId=
SymbolicName=EVMSG_INVALIDLICENCE
Language=English
The service does not have a valid licence. Initialization failed.
.
It compiles fine. The mc program is running over this file and producing a header file of the same name with my new message id showing.
//
// MessageId: EVMSG_INVALIDLICENCE
//
// MessageText:
//
// The service does not have a valid licence. Initialization failed.
//
#define EVMSG_INVALIDLICENCE 0x0000006DL
Any ideas why it's not finding my message? All the others work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保链接到 mc 编译器生成的资源文件。
Make sure you're linking with the resource file generated by the mc compiler.