Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / November 2004

Tip: Looking for answers? Try searching our database.

Requested Registry Access is Not Allowed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KreativeKai - 30 Nov 2004 13:55 GMT
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?

Signature

Lost in the Vast Sea of .NET

Cowboy (Gregory A. Beamer) - MVP - 30 Nov 2004 14:49 GMT
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!
***************************

> We have several applications that will be executing on multiple machines.
> These applications will be placed on our network and setup with an xcopy
[quoted text clipped - 36 lines]
> Does anyone have any feedback regarding Permission Sets and Framework
> Security that might help?
KreativeKai - 30 Nov 2004 15:49 GMT
Both links I've found to be helpful, but not really what I was hoping for.  

The first link is related to an ASP.NET project and my application is a
Windows App.  Changing the registry would work, but if I deploy this project
to multiple clients it isn't as streamlined as I was hoping.

The second article talks about writing to a "Custom" eventlog, and I'm just
trying to write to the application log which really isn't considered
"custom".  

I was hoping for some insight as to possible solutions within the framework
configuration with the use of permission sets.  Does anyone have any insight
in this area.

Thanks for your feedback.  Maybe I'm looking in the wrong direction for
answers, but all input is helpful to put the pieces of the puzzle together.

Thanks,
KreativeKai

> Try:
> http://support.microsoft.com/default.aspx?scid=kb;en-us;329291
[quoted text clipped - 51 lines]
> > Does anyone have any feedback regarding Permission Sets and Framework
> > Security that might help?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.