Re: How to solve it ?

From: Paul Glavich [MVP - ASP.NET] (glav_at_aspalliance.com-NOSPAM)
Date: 03/24/04


Date: Wed, 24 Mar 2004 22:46:10 +1100

I haven't used Commerce server before so this may change things a bit, but
in order for web apps (in general) to write to the event log, you need to
grant the ASPNET (Win2k) or NETWORK SERVICE (Win2003) user write access to
that event log by setting up the ACL permission in the registry key at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application

or even at the base level

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog

Go into 'regedit', go to the key above, set permissions for the specific
user (one of the 2 above) to write access

- Paul Glavich

"Federico Moschini [328594]" <federicom@nospam.it> wrote in message
news:#M0fbHZEEHA.3372@TK2MSFTNGP10.phx.gbl...
> Access is denied.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: System.UnauthorizedAccessException: Access is denied.
>
> ASP.NET is not authorized to access the requested resource. Consider
> granting access rights to the resource to the ASP.NET request identity.
> ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5
or
> Network Service on IIS 6) that is used if the application is not
> impersonating. If the application is impersonating via <identity
> impersonate="true"/>, the identity will be the anonymous user (typically
> IUSR_MACHINENAME) or the authenticated request user.
>
> To grant ASP.NET write access to a file, right-click the file in Explorer,
> choose "Properties" and select the Security tab. Click "Add" to add the
> appropriate user or group. Highlight the ASP.NET account, and check the
> boxes for the desired access.
>
> 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:
>
> [UnauthorizedAccessException: Access is denied.]
> SharedFns.WriteToEventLog(String& sString, Int16& iLogType, Int32&
> iEventID) +34
>
>
Microsoft.CommerceServer.Interop.Configuration.SiteConfigReadOnlyFreeThreade
> d.Initialize(String bstrSiteName) +4215
>
>
Microsoft.CommerceServer.Runtime.Configuration.CommerceResourceCollection..c
> tor(String siteName) +217
>
>
Microsoft.CommerceServer.Runtime.CommerceApplicationModule.InitializeApplica
> tion() +195
>
>
Microsoft.CommerceServer.Runtime.CommerceApplicationModule.Init(HttpApplicat
> ion appInstance) +76
> System.Web.HttpApplication.InitModules() +100
> System.Web.HttpApplication.InitInternal(HttpContext context,
> HttpApplicationState state, MethodInfo[] handlers) +1297
>
> System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext
> context) +392
> System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
> context) +256
> System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
+414
>
>
>
> --------------------------------------------------------------------------

--
> ----
> Version Information: Microsoft .NET Framework Version:1.1.4322.940;
ASP.NET
> Version:1.1.4322.967
>
>


Relevant Pages

  • RE: Remote Access Error
    ... execution of the current web request. ... >An unhandled exception was generated during the execution ... using the exception stack trace below. ... meInit(HttpContext context) +98 ...
    (microsoft.public.windows.server.sbs)
  • Exception Details: System.UnauthorizedAccessException
    ... An unhandled exception occurred during the execution of the = ... granting access rights to the resource to the ASP.NET request identity. ... System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +454 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Request format is unrecognized
    ... > Request format is unrecognized. ... An unhandled exception occurred during the execution of the ... > type, HttpContext context, HttpRequest request, HttpResponse response) ... > context, String verb, String url, String filePath) +92 ...
    (microsoft.public.biztalk.general)
  • Re: net logon
    ... An unhandled exception occurred during the execution of the ... granting access rights to the resource to the ASP.NET request identity. ... HttpContext context, String virtualPath, Boolean fApplicationFile) +111 ...
    (microsoft.public.inetserver.iis.security)
  • Re: SBS 2003 Standard IIS Issue
    ... I type "nwupwebsite.com:81" into the same browser, and that request ... I could put the Video Server ... Theoretically it all works as long as I use the URL Forward in IIS, ... Context context) +98 ...
    (microsoft.public.windows.server.sbs)