RE: Requested Registry Access is Not Allowed

From: Cowboy (Gregory A. Beamer) - MVP (NoSpamMgbworld_at_comcast.netNoSpamM)
Date: 11/30/04


Date: Tue, 30 Nov 2004 06:49:08 -0800

Try:
http://support.microsoft.com/default.aspx?scid=kb;en-us;329291

or
http://support.microsoft.com/default.aspx?scid=kb;en-us;842795

---
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"KreativeKai" wrote:
> We have several applications that will be executing on multiple machines. 
> These applications will be placed on our network and setup with an xcopy 
> style of deployment. To accomplish this task, we had to adjust the Framework 
> configuration, Code Access Security for the machine to Full Trust for Local 
> Intranet applications. 
> 
> We created a deployment package and we execute this on any machines that 
> will execute the apps.  
> 
> These apps also have a feature where we write messages to the eventlog when 
> an error is encountered. This works great for our clients that have Power 
> user or admin rights, but for a standard user the eventlog post fails with a 
> message that "Requested Registry Access is Not Allowed". 
> 
> There are Permission Sets within the framework configuration tool, but I'm 
> not sure what the best approach is to accomplish allowing standard clients 
> the permisiion to write to the eventlog without opening security up too much.
> 
> I'm writing to the "Application" log as a standard user with the following 
> code: 
> 
> Dim EventLogMessageSys As New System.Diagnostics.EventLog 
> Dim strMachineName As String 
> strMachineName = System.Environment.MachineName 
> EventLogMessageSys.MachineName = strMachineName EventLogMessageSys.Source = 
> “TestApp” EventLogMessageSys.Log = "Application"
> EventLogMessageSys.WriteEntry("Testing", EventLogEntryType.Information) 
> 
> The app fails on the WriteEntry and the exception that is thrown is 
> "Requested Registry Access is Not Allowed". With Windows 2000 and prior, you 
> could write to the application log, but with Windows XP Pro SP1 I'm not 
> experiencing the same behavior. 
> 
> XP seems to be more sophisticated with the security. As I said above, I was 
> hoping there might be a Permission Set tweak that you can perform on any 
> machine that the app will run. If you can set permissions for a specific 
> machine or sign-on to have higher rights, the app might run. 
> 
> Does anyone have any feedback regarding Permission Sets and Framework 
> Security that might help?
> 
> -- 
> Lost in the Vast Sea of .NET


Relevant Pages

  • Requested Registry Access is Not Allowed
    ... We have several applications that will be executing on multiple machines. ... will execute the apps. ... There are Permission Sets within the framework configuration tool, ... The app fails on the WriteEntry and the exception that is thrown is ...
    (microsoft.public.dotnet.framework)
  • RE: More on Shatter
    ... Latency for the WM_TIMER message is irrelevant. ... load, and you code an app to fire WM_TIMER's at every 50ms, your WM_TIMERS ... > try to do real-time things (as I wager most applications ...
    (Vuln-Dev)
  • Re: Safely SHUTDOWN Device from Application
    ... If you have only specific applications then you could designate one to be ... How you handle suspend is very much hardware dependent, ... It's then up to the app to take ... By 'Safe Shutdown', I meant that any application writing/reading to/ ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Help with mini mac program instalation.
    ... not directing my comments to you but rather him. ... you can/must/do setup or configure an app in the process installing it. ... Get the app to APPLICATIONS. ... Once you execute it the first time you can configure the app...but the 'install' is a 'do-little' but get the app/folder w/app to APPLICATIONS. ...
    (comp.sys.mac.advocacy)
  • Re: Themes & Colors
    ... The whole idea of Windows is to provide a consistent color ... If you change the color scheme, you change ALL applications. ... If you want to change the way your app looks color-wise, ...
    (microsoft.public.fox.programmer.exchange)