Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Security exception while trying to wrtite Event Log

Security exception while trying to wrtite Event Log

Scheduled Pinned Locked Moved C#
csharphelpasp-netcomwindows-admin
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alex Getman
    wrote on last edited by
    #1

    Hi Gurus! I developing a C# asp.net application. I want my application write something to it's own event log, but when I trying to do this I got folllowing error - "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the EventLog I found some solutiong here - http://support.microsoft.com/?id=329291 but it not helps in my case... I have done all modifications to my code exactly like in former article, but I still recieve this error... I hope someone could help me. Thanx. xedom developers team

    L 1 Reply Last reply
    0
    • A Alex Getman

      Hi Gurus! I developing a C# asp.net application. I want my application write something to it's own event log, but when I trying to do this I got folllowing error - "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the EventLog I found some solutiong here - http://support.microsoft.com/?id=329291 but it not helps in my case... I have done all modifications to my code exactly like in former article, but I still recieve this error... I hope someone could help me. Thanx. xedom developers team

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Alex Getman wrote: I have done all modifications to my code exactly like in former article, but I still recieve this error... Its not a code-alone fix. The registry entry needs to be create on the machine with a user with sufficient priviliges. Alex Getman wrote: xedom developers team 403: Forbidden :( top secret xacc-ide 0.0.1

      A 1 Reply Last reply
      0
      • L leppie

        Alex Getman wrote: I have done all modifications to my code exactly like in former article, but I still recieve this error... Its not a code-alone fix. The registry entry needs to be create on the machine with a user with sufficient priviliges. Alex Getman wrote: xedom developers team 403: Forbidden :( top secret xacc-ide 0.0.1

        A Offline
        A Offline
        Alex Getman
        wrote on last edited by
        #3

        1. So if I understood you right - there is no solution exists for my problem throught code tricks? 2. I know. It's all about money :(( xedom developers team

        N 1 Reply Last reply
        0
        • A Alex Getman

          1. So if I understood you right - there is no solution exists for my problem throught code tricks? 2. I know. It's all about money :(( xedom developers team

          N Offline
          N Offline
          Nick Parker
          wrote on last edited by
          #4

          Alex Getman wrote: there is no solution exists for my problem throught code tricks? You have to have appropriate permissions to write to the registry, does that make sense? - Nick Parker
          My Blog | My Articles

          A 1 Reply Last reply
          0
          • N Nick Parker

            Alex Getman wrote: there is no solution exists for my problem throught code tricks? You have to have appropriate permissions to write to the registry, does that make sense? - Nick Parker
            My Blog | My Articles

            A Offline
            A Offline
            Alex Getman
            wrote on last edited by
            #5

            Well, yes, it does. All I need it's just to install my application and when an error occurs to write some entry to the EventLog. Is possible to do it in some way without manual registry tuning? xedom developers team

            N 1 Reply Last reply
            0
            • A Alex Getman

              Well, yes, it does. All I need it's just to install my application and when an error occurs to write some entry to the EventLog. Is possible to do it in some way without manual registry tuning? xedom developers team

              N Offline
              N Offline
              Nick Parker
              wrote on last edited by
              #6

              Alex Getman wrote: All I need it's just to install my application and when an error occurs to write some entry to the EventLog. Is possible to do it in some way without manual registry tuning? You stated that your application was an ASP.NET application, which changes things. The question should be in the ASP.NET forum. You need to understand that your ASP.NET application is running under the ASPNET user account, which does not have appropriate privileges to create the event source. You can programmatically change the registry (to thus allow you to create the event source), however the account you are running as (ASPNET in your case) must have appropriate permissions to do so. Making changes to the registry is something that can be done with an install package, however the person installing the application also needs to have appropriate rights as well. Does that make sense? - Nick Parker
              My Blog | My Articles

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups