Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Access to registery

    Hi,
    When i call :

    System.Diagnostics.EventLog.WriteEntry(string);

    ASP.NET says :

    System.Security.SecurityException: Requested registry access is not allowed.

    What kind of permission should i give to ASPNET user?

    Thanks,
    Ali


    A.M Guest

  2. Similar Questions and Discussions

    1. Web Service + Anon Access, but getting 401 Access Denied Error
      I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous...
    2. Access 2002 PDFWriter VBA Code w/WinXP does not work like Access 2000
      I am trying to print an Access 2002 report (Windows XP OS) as a PDF. I had success with Access 2000 in a Windows 2000 environment, but as soon as I...
    3. Access Violation when using Visual Interdev to access Oracle
      I am running Windows 200 Pro, IIS 5.0 and trying to connect to an Oracle 8.1 database. Prior to applying a security patch to W2k, the ASP...
    4. #26093 [NEW]: access variable cause access violation
      From: bruno dot faust at ig dot com dot br Operating system: XP SP1 latest PHP version: 4.3.3 PHP Bug Type: Reproducible...
    5. Access denied when creating Access application object
      In an ASP file I am running the following in VBScript in order to extract data from an Access 2002 MDB file which is physically located in the...
  3. #2

    Default RE: Access to registery

    Hi Ali,

    Thank you for using MSDN Newsgroup! My name is Steven, and I'll be
    assisting you on this issue.
    From your description, you encountered the
    "System.Security.SecurityException: Requested registry access is not
    allowed."
    exception when try to add eventlog via
    "System.Diagnostics.EventLog.WriteEntry(string );" in ASP.NET application.
    If there is anything I misunderstood, please feel free to let me know.

    Based on my research, this seem to be a common issue which is due to :
    By default, the user token of the ASP.NET worker process is ASPNET (or
    NetworkService for applications that run on Internet Information Services
    [IIS] 6.0). The problem in the "Symptoms" section occurs because your
    account does not have the correct user rights to create an event source.

    Also, there is a KB article which has provided the solution on this issue,
    you may check it out to see whether it helps:
    #PRB: "Requested Registry Access Is Not Allowed" Error Message When ASP.NET
    Application Tries to Write New EventSource in the EventLog

    [url]http://support.microsoft.com/?id=329291[/url]

    If you have need any further assistance, please feel free to let me know.


    Regards,

    Steven Cheng
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)


    Steven Cheng[MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139