Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
hello sir
i am getting a run time warning by showing "An error occurred while querying for WMI data:accessed denied"
the project title :spyNet
coding lang:c#
technologies used:WMI and MQL
my current version of OS is: windows7


pls help me

[edit]Suject changed, SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 13-May-12 3:45am
v2
Comments
OriginalGriff 13-May-12 9:46am    
1) DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
2) Changed question title to meaningful description. Please do not use "PLS HELP ME GETTING ERROR" or similar as it does not tell potential answerers what your problem is - that wastes time if they know nothing about WMI. If you use a more descriptive title, you will get better focussed responses.
OriginalGriff 13-May-12 9:46am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
bbirajdar 13-May-12 11:09am    
So when did the error occured ? While searching on google or while logging into GMail?
John d. Bartels 13-May-12 13:07pm    
This seems like a simple permissions issue to me... Are you using WMI to query a remote computer? or is this the local computer? If it is a remote computer, you will have to query the remote terminal using a domain admin, and the computer must exist on the domain. If this is a local WMI query, simply running the application as administrator will rid you of this error. Running Visual Studio as Administrator will rid you of the error while actively developing the program. You could also use impersonation or have the user specify login credentials at runtime. Posting the portion of code that is throwing the error would be helpful as well.
pavanantkul 14-May-12 5:40am    
yes sir i am using WMI to access the remote computer information like...IPaddress,osversion ,username

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900