470,810 Members | 1,059 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

raising WMI events from ASP.net

I am encountering a problem raising WMI events from an
asp.net application. The error received (as captured in
the event log) is as follows:

System.Runtime.InteropServices.COMException (0x80041003):
Exception from HRESULT: 0x80041003.
Microsoft.EnterpriseInstrumentation.EventSinks.Wmi EventSink
..Write(Object eventToRaise)
Microsoft.EnterpriseInstrumentation.EventSource.Ra iseEvent
(Object eventToRaise, RequestContext requestContext)

Trawling Google has revealed that this is an access denied
exception when the asp user tries to interact with WMI to
raise events. When the event raising code is executed as a
console application (as the currently logged in user) the
event is raised correctly to WMI.

To try to fix this problem I have:

Given all permissions to "everyone" to all WMI namespaces.
Given all permissions to aspnet user on all WMI namespaces.

Some of the literature on the Internet mentions turning on
impersonation within the asp application to solve this.
This is not a possibility as it is a requirement that
users will access the site anonymously. Hence anonymous
access is enabled within IIS and windows integrated
authentication is enabled.

I am running .net framework 1.1 on a windows 2000 server
sp4 system.

Any pointers are much appreciated.
Nov 18 '05 #1
0 1318

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by serge calderara | last post: by
4 posts views Thread by rawCoder | last post: by
4 posts views Thread by Dave A | last post: by
reply views Thread by Apu Nahasapeemapetilon | last post: by
7 posts views Thread by Christian Cambier | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.