WARNING -Provider resources not accessible running wevtutil

后端 未结 4 1143
眼角桃花
眼角桃花 2021-01-17 10:05

I need help solving the \"Provider \'\' resources not accessible when trying to create a windows event provider. I create my manifest file with the ManGen utility, and name

4条回答
  •  再見小時候
    2021-01-17 10:47

    When you install your manifest (e.g. wevtutil im manifest.man), you should see some sort of a warning if the resources aren't available:

    **** Warning: Publisher EventsProvider resources are not accessible.
    

    To get some additional information, try to retrieve information on one of the publishers. For example:

    c:\...> wevtutil gp 
    Failed to open metadata for publisher . Access denied.
    

    Ok, the above suggests a permissions problem, so let me make the path accessible and try again:

    c:\...> wevtutil gp 
    Failed to open metadata for publisher . The specified resource
    type cannot be found in the image file.
    

    For the above, it looks like the resource didn't get compiled in correctly.

    If you go File->Open with VS and open your exe in the resource viewer you should be able to see the resources that were compiled in. You should at least have a "WEVT_TEMPLATE" entry.

    For the resource to be compiled in correctly, csc needs to be passed the resource as follows:

    csc /win32res:
    

提交回复
热议问题