none
CLR - Binding error - "A fatal error occurred when retrieving next codebase for download" RRS feed

  • Question

  • We intermittently get a binding error while running our web application which is a Microsoft CRM based addon product. This is what is seen in fusion log...

     

    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Dynamics CRM/server/bin/assembly/c360.Toolkit.Logging.DLL.

    ERR: A fatal error occurred when retrieving next codebase for download (hr = 0x80070005).

     

    The assembly (c360.Toolkit.Logging.DLL.) being probed is available in path (C:/Program Files/Microsoft Dynamics CRM/server/bin/assembly) but not sure why CLR is not able to find it and is throwing error. Googling could not be of much help either.

    Appreciate if someone can throw more light on what is going behind this error? Please find the detailed error log below

    ***************************************************

    *** Assembly Binder Log Entry  5/12/2010 @ 1:51:11 PM) ***

     

    The operation failed.

    Bind result: hr = 0x80070005. Access is denied.

    Assembly manager loaded from:  C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll

    Running under executable  c:\windows\system32\inetsrv\w3wp.exe

    --- A detailed error log follows. 

    === Pre-bind state information ===

    LOG: User = <DomainName>\<DomainUser>

    LOG: DisplayName = c360.Toolkit.Logging, Version=4.0.8.298, Culture=neutral, PublicKeyToken=d6d8f8cfb779bdfa

     (Fully-specified)

    LOG: Appbase = file:///C:/Program Files/Microsoft Dynamics CRM/CRMWeb/

    LOG: Initial PrivatePath = C:\Program Files\Microsoft Dynamics CRM\CRMWeb\bin

    LOG: Dynamic Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fcc31ff6

    LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fcc31ff6

    LOG: AppName = e77f4ed8

    Calling assembly : c360.PluginFramework.Dispatcher, Version=4.0.1.583, Culture=neutral, PublicKeyToken=d6d8f8cfb779bdfa.

    ===

    LOG: This bind starts in LoadFrom load context.

    WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().

    LOG: Using application configuration file: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\web.config

    LOG: Using host configuration file: \\?\C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet.config

    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.

    LOG: Post-policy reference: c360.Toolkit.Logging, Version=4.0.8.298, Culture=neutral, PublicKeyToken=d6d8f8cfb779bdfa

    LOG: GAC Lookup was unsuccessful.

    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/fcc31ff6/e77f4ed8/c360.Toolkit.Logging.DLL.

    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/fcc31ff6/e77f4ed8/c360.Toolkit.Logging/c360.Toolkit.Logging.DLL.

    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Dynamics CRM/CRMWeb/bin/c360.Toolkit.Logging.DLL.

    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Dynamics CRM/CRMWeb/bin/c360.Toolkit.Logging/c360.Toolkit.Logging.DLL.

    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/fcc31ff6/e77f4ed8/c360.Toolkit.Logging.EXE.

    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/fcc31ff6/e77f4ed8/c360.Toolkit.Logging/c360.Toolkit.Logging.EXE.

    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Dynamics CRM/CRMWeb/bin/c360.Toolkit.Logging.EXE.

    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Dynamics CRM/CRMWeb/bin/c360.Toolkit.Logging/c360.Toolkit.Logging.EXE.

    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Dynamics CRM/server/bin/assembly/c360.Toolkit.Logging.DLL.

    ERR: A fatal error occurred when retrieving next codebase for download (hr = 0x80070005).

    ***************************************************

    Thanks,
    Sunil

     

    Monday, May 17, 2010 7:00 AM

Answers

  • Try to find out what is causing the 'Access denied' - I would use Process Monitor and check file accesses around the time that fusion fails. If it doesn't help, try to look at registry accesses at that time.

    -Karel

    Tuesday, May 18, 2010 4:59 AM
    Moderator

All replies

  • Try to find out what is causing the 'Access denied' - I would use Process Monitor and check file accesses around the time that fusion fails. If it doesn't help, try to look at registry accesses at that time.

    -Karel

    Tuesday, May 18, 2010 4:59 AM
    Moderator
  • Thanks Karel. Looks definitely like a security problem.

    One thing I find strange is that the user associated is 'Network Service' on all successful bindings and 'Domain User' on failure bindings. Not sure where and how the switch is happening. But that's another issue for me to explore.

    Thanks again for your reply.

     

     

    Wednesday, May 19, 2010 12:29 PM