« Previous Next »

Thread: Could not load file or assembly '******' or one of its dependencies. Access is denied.

Last post 11-11-2009 12:09 PM by yasir laghari. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 08-21-2009, 9:08 AM

    Could not load file or assembly '******' or one of its dependencies. Access is denied.

    There's plenty of information out there about this error. I haven't seen anything specific to IIS7. The error is random, but after it happens once, it continues for every subsequent request until the site is restarted. We have 3 servers in a farm, this happens on all of them. We are on 2008 64bit. App pool is in Integrated mode and the app pool identity is Network Service. Some pages use impersonation on a different user. I have given both of these users full access to the Temporary ASP folders, there is no active virus scan, indexing is off... I've been working at this for a week and everyday I think its fixed, and every morning I get back in to this happening on a server or 2. Also this is only happening in our production environment, our other environments are not experiencing this.

     Error Page:

    Could not load file or assembly 'ADAM.ReportingServices.Proxy' or one of its dependencies. Access is denied.

    Server Error in '/' Application.

    Could not load file or assembly 'ADAM.ReportingServices.Proxy' or one of its dependencies. 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.IO.FileLoadException: Could not load file or assembly 'ADAM.ReportingServices.Proxy' or one of its dependencies. Access is denied.

    Source Error:

    [No relevant source lines]

    Source File: c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\fe3ce745\6b82ba80\App_Web_b2xey_2w.1.cs    Line: 0

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'ADAM.ReportingServices.Proxy' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Stack Trace:

    [FileLoadException: Could not load file or assembly 'ADAM.ReportingServices.Proxy' or one of its dependencies. Access is denied.]
    System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
    System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416
    System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166
    System.Reflection.Assembly.Load(String assemblyString) +35
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190

    [ConfigurationErrorsException: Could not load file or assembly 'ADAM.ReportingServices.Proxy' or one of its dependencies. Access is denied.]
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11200744
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +388
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +232
    System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +48
    System.Web.Compilation.CompilationUtil.GetTypeFromAssemblies(AssemblyCollection assembliesCollection, String typeName, Boolean ignoreCase) +166
    System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +362
    System.Web.UI.Page.get_ScriptManagerType() +61
    System.Web.UI.Page.get_IsPartialRenderingSupported() +74
    System.Web.UI.WebControls.BaseValidator.RegisterValidatorCommonScript() +36
    System.Web.UI.Control.PreRenderRecursiveInternal() +108
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11035400
    System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11035098
    System.Web.UI.Page.ProcessRequest() +91
    System.Web.UI.Page.ProcessRequest(HttpContext context) +240
    ASP.login_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\fe3ce745\6b82ba80\App_Web_b2xey_2w.1.cs:0
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171


    Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
     

     

    Event log:

     Event code: 3008
    Event message: A configuration error has occurred.
    Event time: 8/21/2009 8:40:28 AM
    Event time (UTC): 8/21/2009 12:40:28 PM
    Event ID: 629067e5c52c484fbf1a1daca6352436
    Event sequence: 38
    Event occurrence: 4
    Event detail code: 0
     
    Application information:
        Application domain: /LM/W3SVC/3/ROOT-1-128953313511323690
        Trust level: Full
        Application Virtual Path: /
        Application Path: E:\inetpub\wwwroot\Enrollment\
        Machine name: PRD-WEB01G
     
    Process information:
        Process ID: 4592
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
     
    Exception information:
        Exception type: ConfigurationErrorsException
        Exception message: Could not load file or assembly 'ADAM.ReportingServices.Proxy' or one of its dependencies. Access is denied.
     
    Request information:
        Request URL: http://10.9.5.145/Login.aspx?ReturnUrl=A configuration error has occurred.f
        Request path: /Login.aspx
        User host address: 10.200.10.70
        User:  
        Is authenticated: False
        Authentication Type:  
        Thread account name: NT AUTHORITY\NETWORK SERVICE
     
    Thread information:
        Thread ID: 8
        Thread account name: NT AUTHORITY\NETWORK SERVICE
        Is impersonating: False
        Stack trace:    at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
       at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
       at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
       at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
       at System.Web.Compilation.CompilationUtil.GetTypeFromAssemblies(AssemblyCollection assembliesCollection, String typeName, Boolean ignoreCase)
       at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
       at System.Web.UI.Page.get_ScriptManagerType()
       at System.Web.UI.Page.get_IsPartialRenderingSupported()
       at System.Web.UI.WebControls.BaseValidator.RegisterValidatorCommonScript()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.login_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\fe3ce745\6b82ba80\App_Web_b2xey_2w.1.cs:line 0
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     
     
    Custom event details:

     

    Conclusion: HELP!!!

     

  • 08-25-2009, 6:02 AM In reply to

    Re: Could not load file or assembly '******' or one of its dependencies. Access is denied.

    Hi,

    Since it is an access is denied error,  I’d suggest you run Process Monitor to determine the root cause. Open Process Monitor and isolate the work process w3wp.exe, then reproduce this issue. The failed events can help use address the root cause.

    You can get Process monitor from here:
    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 08-25-2009, 9:29 AM In reply to

    • kelseyw
    • Not Ranked
    • Joined on 06-25-2003, 10:43 PM
    • Posts 2

    Re: Could not load file or assembly '******' or one of its dependencies. Access is denied.

    We are in a very similar environment and experiencing the exact same thing. Error happens intermittently, but once it happens, continues to happen until the web site is reset. We have two servers running Windows 2008 Enterprise 64 bit, IIS7 (App pool in Integrated Mode), SP2 that exhibit the problem. We are using a domain account for the identity. We also have a Windows 2008 Standard 64 bit machine, running only SP1, that does NOT have the problem (same custom application running on all servers). We opened a case with Microsoft Support last week, but have not gotten it figured out yet. We've taken procmon captures, fusion log captures, and crash dumps, but still no explanation. Calling MS Support Rep back this morning. Will post more if/when I find something more out.
  • 08-26-2009, 10:00 AM In reply to

    • kelseyw
    • Not Ranked
    • Joined on 06-25-2003, 10:43 PM
    • Posts 2

    Re: Could not load file or assembly '******' or one of its dependencies. Access is denied.

    Leo, We have run procmon and not seeing any failed events. Any other ideas? Thanks, Kelsey
  • 08-28-2009, 12:02 AM In reply to

    Re: Could not load file or assembly '******' or one of its dependencies. Access is denied.

    Hi,

    By default, the process monitor only show file system activity. Please make sure the other options also enabled by clicking the switch buttons on the tool bar. If you can’t see any failure event, you may need to debug your application on the server

    Since you have opened a case, a dedicated support engineer will help you resolve this issue through Email, conversation and etc. I’m sorry for not having a solution for your.

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 11-11-2009, 12:09 PM In reply to

    Re: Could not load file or assembly '******' or one of its dependencies. Access is denied.

    Hi shifty, did you figure out a solution to this problem? I've been banging my head on this for days now but no success so far.
Page 1 of 1 (6 items)
Microsoft Communities