943,645 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 1974
  • VB.NET RSS
You are currently viewing page 1 of this multi-page discussion thread
Jan 13th, 2009
0

2008 Progblem reading event viewer

Expand Post »
I am able to read the data from the application event logs but when i try the security i get an error

Requested registry access is not allowed.
{"Cannot open log security on machine .. Windows has not provided an error code."}
{"A required privilege is not held by the client"}

Anyone know how to sort this?

I am using Vista
Last edited by smelf1; Jan 13th, 2009 at 6:54 am.
Reputation Points: 10
Solved Threads: 0
Light Poster
smelf1 is offline Offline
44 posts
since Mar 2008
Jan 13th, 2009
0

Re: 2008 Progblem reading event viewer

Try to run your application as administrator, right click on your executable then Run as Administrator, try and tell me what you get.
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
Jan 13th, 2009
0

Re: 2008 Progblem reading event viewer

Hi mate,

I am a full administrator, i think its another one of these great security features added into vista.

I can read from the other event logs just not from the security one
Reputation Points: 10
Solved Threads: 0
Light Poster
smelf1 is offline Offline
44 posts
since Mar 2008
Jan 13th, 2009
0

Re: 2008 Progblem reading event viewer

Just! did you try it??
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
Jan 13th, 2009
0

Re: 2008 Progblem reading event viewer

i am just running the progrma from inside vs 2008, how do i create it as an exe?
Reputation Points: 10
Solved Threads: 0
Light Poster
smelf1 is offline Offline
44 posts
since Mar 2008
Jan 13th, 2009
0

Re: 2008 Progblem reading event viewer

Right click on VS icon, and run it as administrator.
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
Jan 13th, 2009
0

Re: 2008 Progblem reading event viewer

ah right sorry i taught you wanted me to create an exe of the project then run it.

If i run vs2008 as administrator it read from the security logs.

But how do i get it to allow me to run them from my user?
Reputation Points: 10
Solved Threads: 0
Light Poster
smelf1 is offline Offline
44 posts
since Mar 2008
Jan 13th, 2009
0

Re: 2008 Progblem reading event viewer

Logical, non administrative staff can't read this information! right? so if your user is administrator he can do what we've done -> right click on your application and run it as administrator.
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
Jan 13th, 2009
0

Re: 2008 Progblem reading event viewer

the problem is the program when finished will be running as a windows service so will require no user interaction. Its just going to mine data and pass it back to the database.

So i need to get it to allow me to access the security logs.
Reputation Points: 10
Solved Threads: 0
Light Poster
smelf1 is offline Offline
44 posts
since Mar 2008
Jan 13th, 2009
0

Re: 2008 Progblem reading event viewer

Look to deploy it as windows service, should be also installed as administrator! then it'll work without any interaction with the current user.
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: combo box with 'Please Select' in vb 2008
Next Thread in VB.NET Forum Timeline: Run Multiple Skype





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC