none
ReflectionTypeLoadException RRS feed

  • Question

  • I try to debug class library for autocad. I use Autocad .Net Plug-in template for this library. When I start debug Autocad is called, then I run method from library inside Autocad. It stops on this snippet

    var allShapeSubClasses = (from domainAssembly in AppDomain.CurrentDomain.GetAssemblies()
                                from assemblyType in domainAssembly.GetTypes()
                                where typeof(Shape).IsAssignableFrom(assemblyType)
                                select assemblyType).ToArray();
                

    ReflectionTypeLoadException is raised. In LoaderExceptions property of this exception there is further

    Could not load file or assembly 'System.Windows.Interactivity , Version = 4.0.0.0, Culture = neutral ...

    I ran fuslog.exe to log this error. There I found file  System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.HTM

    Further its content. As one can see there is no any record with System.Windows.Interactivity. I added to references of project System.Windows.Interactivity of version 4.0.0.0. Neither 4.5.0.0 version solved the problem.

    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: GAC Lookup was unsuccessful.
    LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity.DLL.
    LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity/System.Windows.Interactivity.DLL.
    LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity.EXE.
    LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity/System.Windows.Interactivity.EXE.
    LOG: All probing URLs attempted and failed.
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: GAC Lookup was unsuccessful.
    LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity.DLL.
    LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity/System.Windows.Interactivity.DLL.
    LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity.EXE.
    LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity/System.Windows.Interactivity.EXE.
    LOG: All probing URLs attempted and failed.
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    
    *** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. Не удается найти указанный файл.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = acad.exe
    Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

    Saturday, May 7, 2016 4:02 AM

Answers

  • Does that dll exist in the AutoCAD installation directory where the runtime is looking for it? I don't know nothing about AutoCAD plugins but I wouldn't be surprised to hear that they are installed in a subdirectory of the AutoCAD installation folder. In that case adding System.Windows.Interactivity.dll as a project reference wouldn't solve anything, in the best case it would get copied to the plugins folder but that's not where the runtime is looking for it.

    Is using GetAssemblies and GetTypes to find all shapes something that the AutoCAD documentation suggests? In general this approach is slow and error prone exactly because it can lead to such exceptions. Sometime assemblies contain types that are used during normal program execution. GetTypes forces all type in an assembly to be loaded and that leads to the loading of other assemblies, some of those may not be installed for various reasons (optional features for example).

    If you must use GetAssemblies and GetType then the GetTypes you should handle ReflectionTypeLoadException exceptions to skip assemblies and types. Notice that in this particular case the assembly that caused this is Microsoft.Expression.Interactions. Obviously that assembly doesn't contain any AutoCAD shapes so skipping it is perfectly fine.

     
    Saturday, May 7, 2016 8:10 AM
    Moderator