Re: Win2k3 IIS error "Requested registry access is not allowed"

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Kristofer Gafvert (kgafvert_at_NEWSilopia.com)
Date: 11/11/04

  • Next message: James Hurrell: "Re: IIS "pass thru-proxies""
    Date: Thu, 11 Nov 2004 08:41:05 +0100
    
    

    Hello,

    Have you seen this KB Article:

    "PRB: "Requested Registry Access Is Not Allowed" Error Message When ASP.NET
    Application Tries to Write New EventSource in the EventLog"
    http://support.microsoft.com/default.aspx?scid=kb;en-us;329291

    Maybe that solves your problem?

    -- 
    Regards,
    Kristofer Gafvert
    http://www.ilopia.com
    "bugzy" <bugzy619@hotmail.com> wrote in message
    news:etOIFx2xEHA.3224@TK2MSFTNGP14.phx.gbl...
    > I am getting the following error. "Requested registry access is not
    allowed"
    > ???
    >
    > I am running Windows 2003 server, IIS 6 and asp.net web app.
    >
    > The app i am trying to load on this server runs on a Windows 2000 server
    > with IIS 5, properly. I am trying to see if the app functions on a Windows
    > 2003 server.
    >
    > I can get to my first page (default.aspx) ... but after we pass info for
    > login, it goes to an Server Error.
    >
    > I have been trying to mess with regedt32 permissions, but cant seem to get
    > it right. Someone suggested eventlog permissions, but i cant seem to get
    > that working either. I guess, i just dont know exactly what needs to be
    set.
    >
    > Any help would be appreciated.
    >
    >
    >
    > Server Error in '/' Application.
    > --------------------------------------------------------------------------
    ------
    >
    > Security Exception
    > Description: The application attempted to perform an operation not allowed
    > by the security policy. To grant this application the required permission
    > please contact your system administrator or change the application's trust
    > level in the configuration file.
    >
    > Exception Details: System.Security.SecurityException: Requested registry
    > access is not allowed.
    >
    > Source Error:
    >
    >       An unhandled exception was generated during the execution of the
    > current web request. Information regarding the origin and location of the
    > exception can be identified using the exception stack trace below.
    >
    > Stack Trace:
    >
    > [SecurityException: Requested registry access is not allowed.]
    >    Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
    > +473
    >    System.Diagnostics.EventLog.CreateEventSource(String source, String
    > logName, String machineName, Boolean useMutex) +445
    >    System.Diagnostics.EventLog.CreateEventSource(String source, String
    > logName, String machineName) +11
    >    System.Diagnostics.EventLog.CreateEventSource(String source, String
    > logName) +11
    >    DQ.Logging.EventVwrPublisher.PublishInfo(SeverityLevel severityLevel,
    > NameValueCollection message, String source) +139
    >
    >
    >
    > --------------------------------------------------------------------------
    ------
    > Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
    ASP.NET
    > Version:1.1.4322.2032
    >
    >
    

  • Next message: James Hurrell: "Re: IIS "pass thru-proxies""

    Relevant Pages

    • Re: App_data - ASPNETDB.MDF
      ... is only because I want my site work, without exception. ... Server Error in '/' Application. ... serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: HttpException (0x80004005): Server Too Busy
      ... We try and change the web.config file to use a new .dll file and the server ... An unhandled exception occurred during the execution of the ... An unhandled exception was generated during the execution of the current web ... userToken, String cmd, String currentDir, TempFileCollection tempFiles, ...
      (microsoft.public.dotnet.framework.aspnet)
    • Win2k3 IIS error "Requested registry access is not allowed"
      ... I am running Windows 2003 server, IIS 6 and asp.net web app. ... Exception Details: System.Security.SecurityException: Requested registry ... System.Diagnostics.EventLog.CreateEventSource(String source, String ...
      (microsoft.public.inetserver.iis)
    • Re: Invalid mail attachment
      ... Server was unable to process request. ... Please review the stack trace for more information about ... Exception Details: System.Web.Services.Protocols.SoapException: Server was ... As String, ByVal pStrAttachment As String) As String ...
      (microsoft.public.dotnet.general)
    • Re: HttpException (0x80004005): Server Too Busy
      ... on the server and only this site has the problem, ... An unhandled exception occurred during the execution of the ... userToken, String cmd, String currentDir, TempFileCollection tempFiles, ...
      (microsoft.public.dotnet.framework.aspnet)