none
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Question

  • I'm having problems determining the source of this RPC Endpoint Mapper error. I'm running a web page (web server - win2k) that uses the ReportViewer control to display a server report located on a different server and domain (report server - Server 2003).    Any ideas would be appreciated.

    The event viewer message is:

    Event Type: Error
    Event Source: DCOM
    Event Category: None
    Event ID: 10002
    Date:  4/17/2006
    Time:  2:59:02 PM
    User:  computername\ASPNET
    Computer: computername
    Description:
    Access denied attempting to launch a DCOM Server. The server is:
    {8BC3F05E-D86B-11D0-A075-00C04FB68820}
    The user is ASPNET/computername, SID=S-1-5-21-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxx-xxxx.

    Page displays the following message:

    Server Error in '/IcpReports' Application.
    --------------------------------------------------------------------------------

    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    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. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    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 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. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))]
       System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0
       System.Management.ManagementScope.InitializeGuts(Object o) +785
       System.Management.ManagementScope.Initialize() +216
       System.Management.ManagementObjectSearcher.Initialize() +146
       System.Management.ManagementObjectSearcher.Get() +34
       Microsoft.ReportingServices.Diagnostics.WebUtil.GetIPAddresses(String machine) +273
       Microsoft.ReportingServices.Diagnostics.WebRequestUtil.get_LocalIPAddresses() +138
       Microsoft.ReportingServices.Diagnostics.WebRequestUtil.IsLocalIPAddress(String ipAddress) +37
       Microsoft.ReportingServices.Diagnostics.WebRequestUtil.IsClientLocal() +79
       Microsoft.Reporting.WebForms.ErrorControl.WriteStackTrace(HtmlTextWriter writer) +10
       Microsoft.Reporting.WebForms.ErrorControl.Render(HtmlTextWriter writer) +43
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
       Microsoft.Reporting.WebForms.ReportViewer.Render(HtmlTextWriter writer) +248
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
       System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
       System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
       System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
       System.Web.UI.Page.Render(HtmlTextWriter writer) +26
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896

     


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

    Thursday, April 13, 2006 5:12 PM

Answers

  • The solution:

    • On the web server, identified GUID 8BC3F05E-D86B-11D0-A075-00C04FB68820 in the registry as the Windows Management Instrumentation service.
    • Ran dcomcnfg from the command prompt.
    • Selected Windows Management Instrumentation from the list of services.
    • Updated custom permissions by adding ASPNET account from the Security tab.
    • Reboot the server.

    Hope this works for you.  It did for me.

    Tuesday, April 18, 2006 5:58 PM

All replies

  • The solution:

    • On the web server, identified GUID 8BC3F05E-D86B-11D0-A075-00C04FB68820 in the registry as the Windows Management Instrumentation service.
    • Ran dcomcnfg from the command prompt.
    • Selected Windows Management Instrumentation from the list of services.
    • Updated custom permissions by adding ASPNET account from the Security tab.
    • Reboot the server.

    Hope this works for you.  It did for me.

    Tuesday, April 18, 2006 5:58 PM
  • hi i got a similar error which is

     

    Exception Details: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    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 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

     

    but the above solution didnt work out for me. is it that am looking  at wrong COM object?

    Friday, September 15, 2006 11:47 PM