我正在尝试使用wevtutil注册基于清单的提供程序,并收到以下错误:
**** Warning: Publisher ExampleProvider resources are not accessible.
所以我运行wevtutil gp ExampleProvider并获得以下消息:
Failed to open metadata for publisher ExampleProvider. Access is denied
我使用的用户帐户拥有Administrator
权限,是Event Log Readers
,Performance Log Users
和Performance Monitor Users
群组的一部分。
清单文件与此example中的相同。
有谁知道什么是错的?
附注是我的项目文件夹在属性下具有只读标志,当我尝试更改它时不会抱怨。但是,当我再次打开属性时,它仍然是只读的。任何人都可以解释这种行为吗?
修改 我找到了问题区域,它是通道。
在tutorial中创建的示例清单中,他们创建了一个频道,如:
<channels>
<channel name="MyChannel" chid="MyChannel" symbol="MyChannel" type="Debug" enabled="true" message="$(string.ExampleProvider.channel.MyChannel.message)">
</channel>
<importChannel name="Application" chid="appchnl">
</importChannel>
</channels>
当我删除此频道并在事件中使用默认值时我没有收到任何警告,我是否无权访问该频道或其他内容(应用程序)?