Urgent

Y

Yoshitha

HI
Am trying to retrieve the cpuid of the system from web application and am
geting the followng exception can anybody tell me how to solve this problem
its very urgent for me

i got error in the follwoing line of code

Dim moc As ManagementObjectCollection = mc.GetInstances()



Exception Details:

System.Management.ManagementException: Access denied Source Error:
Line 105: Dim temp As String = String.Empty Line 106: Dim mc
As ManagementClass = New ManagementClass("Win32_Processor") Line 107:
Dim moc As ManagementObjectCollection = mc.GetInstances() Line 108:
Dim mo As ManagementObject Line 109: For Each mo In moc Line 105:
Dim temp As String = String.Empty Line 106: Dim mc As ManagementClass
= New ManagementClass("Win32_Processor") Line 107: Dim moc As
ManagementObjectCollection = mc.GetInstances() Line 108: Dim mo As
ManagementObject Line 109: For Each mo In moc Line 105: Dim


Thanx in advance
Yoshitha
 
J

joey.powell

Does the aspnet account on the server have read permissions for this
portion of the registry? Just because you can browse there and look at
it while *you* are logged in means nothing as far as the app goes. It
runs in the context of the aspnet user, unless you set it up
differently, like with identity impersonation or something.

JP>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top