Hello,

I haven't been able to resolve the following error with loading a type, but
I've isolated the problem a bit more (got the "configuration section" code
out of the picture).  I am totally willing to do the leg work here to find
out what is going on, just need some guidance.

** (WinformsCLV2POC.exe:6688): WARNING **: The following assembly referenced
from
C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\Ease.Payroll.NetTiers.Data.WebServiceClient.dll
could not be loaded:
     Assembly:       (assemblyref_index=0)
     Version:    25964.25959.25673.18176
     Public Key: 0907d8af90186095
The assembly was not found in the Global Assembly Cache, a path listed in
the MONO_PATH environment variable, or in the location of the executing
assembly
(C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\).

Even with an attempt to load the type for reflection, the problem occurs:
Assembly a =
Assembly.ReflectionOnlyLoadFrom("Ease.Payroll.NetTiers.Data.WebServiceClient.dll");

So I couldn't use the above technique to explore the dependencies with
reflection.  However, using Microsoft.Net, I explored the dependencies of
this assembly, and got the following, none of which makes any reference to
the given Public Key.  I also looked at the assembly manifest and child
dependencies and did not see the assembly this thinks it needs:

'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\WinformsCLV2POC.vshost.exe'
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll',
Symbols loaded.
The thread 0x1464 has exited with code 0 (0x0).
The thread 0x488 has exited with code 0 (0x0).
The thread 0x1004 has exited with code 0 (0x0).
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\WinformsCLV2POC.exe',
Symbols loaded.
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll:
Cannot find or open the PDB file.
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll:
Cannot find or open the PDB file.
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll:
Cannot find or open the PDB file.
C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\WinformsCLV2POC.vshost.exe:
Cannot find or open the PDB file.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\Ease.Payroll.NetTiers.Data.WebServiceClient.dll',
Symbols loaded.
dj
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\Ease.Common.Client.UI.ControlLibrary.v2.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\Ease.Common.Client.UI.Controller.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\Ease.Common.Security.dll',
Symbols loaded.
'WinformsCLV2POC.vshost.exe' (Managed): Loaded
'C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\Ease.Common.Interface.dll',
Symbols loaded.
----------------------------------------------------
Assemblies references from: Ease.Payroll.NetTiers.Data.WebServiceClient,
Version=1.1.388.1398, Culture=neutral, PublicKeyToken=null
        Ease.Payroll.NetTiers.Data
        Assemblies references from: Ease.Payroll.NetTiers.Data,
Version=1.1.388.1398, Culture=neutral, PublicKeyToken=null
                mscorlib
                Ease.Payroll.NetTiers.Entities
                Assemblies references from: Ease.Payroll.NetTiers.Entities,
Version=1.1.388.1398, Culture=neutral, PublicKeyToken=null
                        mscorlib
                        Ease.Common.Nettiers.Entities
                        Assemblies references from: 
Ease.Common.Nettiers.Entities,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
                                mscorlib
                                Microsoft.Practices.EnterpriseLibrary.Caching
                                Microsoft.Practices.EnterpriseLibrary.Common
                                System
                                System.Configuration
                                
Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography
                        System
                        Ease.Common.Security
                        Assemblies references from: Ease.Common.Security, 
Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                                mscorlib
                                Microsoft.Practices.EnterpriseLibrary.Caching
                                Microsoft.Practices.EnterpriseLibrary.Common
                                System.Windows.Forms
                                System.Web.Services
                                System.Xml
                                System.Configuration
                                
Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography
                                System
                                System.Core
                        Ease.Payroll.Common.Interface
                        Assemblies references from: 
Ease.Payroll.Common.Interface,
Version=1.1.0.1398, Culture=neutral, PublicKeyToken=null
                                mscorlib
                        Ease.Common.Interface
                        Assemblies references from: Ease.Common.Interface, 
Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                                mscorlib
                                System.Data
                                System
                        Ease.Payroll.Common.Security
                        Assemblies references from: 
Ease.Payroll.Common.Security,
Version=1.1.0.1398, Culture=neutral, PublicKeyToken=null
                                Ease.Common.Security
                                Assemblies references from: 
Ease.Common.Security, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                                        mscorlib
                                        
Microsoft.Practices.EnterpriseLibrary.Caching
                                        
Microsoft.Practices.EnterpriseLibrary.Common
                                        System.Windows.Forms
                                        System.Web.Services
                                        System.Xml
                                        System.Configuration
                                        
Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography
                                        System
                                        System.Core
                                mscorlib
                        Microsoft.Practices.ObjectBuilder2
                        System.Data
                        System.Xml
                Ease.Common.Nettiers.Entities
                Assemblies references from: Ease.Common.Nettiers.Entities,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
                        mscorlib
                        Microsoft.Practices.EnterpriseLibrary.Caching
                        Microsoft.Practices.EnterpriseLibrary.Common
                        System
                        System.Configuration
                        
Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography
                System.Configuration
                Ease.Common.Interface
                Assemblies references from: Ease.Common.Interface, 
Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                        mscorlib
                        System.Data
                        System
                Ease.Common.ConfigurationFile
                Assemblies references from: Ease.Common.ConfigurationFile,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
                        System.Configuration
                        mscorlib
                        System
                        Ease.Common.Utility
                        Assemblies references from: Ease.Common.Utility, 
Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                                mscorlib
                                System
                                System.Data
                                System.Core
                                Ease.Common.Interface
                                Assemblies references from: 
Ease.Common.Interface, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                                        mscorlib
                                        System.Data
                                        System
                                System.Drawing
                                ICSharpCode.SharpZipLib
                                Assemblies references from: 
ICSharpCode.SharpZipLib, Version=0.85.5.452,
Culture=neutral, PublicKeyToken=null
                                        mscorlib
                                        System
                                mscorlib
                                System.Configuration
                System.Data
                Microsoft.Practices.ObjectBuilder2
                System
                Microsoft.Practices.EnterpriseLibrary.Data
                System.Web
                EnvDTE80
                Assemblies references from: EnvDTE80, Version=8.0.0.0, 
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
                        mscorlib
                        EnvDTE
                        Assemblies references from: EnvDTE, Version=8.0.0.0, 
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
                                mscorlib
                                stdole
                                Assemblies references from: stdole, 
Version=7.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
                                        mscorlib
                        stdole
                        Assemblies references from: stdole, Version=7.0.3300.0, 
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
                                mscorlib
                EnvDTE
                Assemblies references from: EnvDTE, Version=8.0.0.0, 
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
                        mscorlib
                        stdole
                        Assemblies references from: stdole, Version=7.0.3300.0, 
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
                                mscorlib
                Microsoft.Practices.EnterpriseLibrary.ExceptionHandling
        EasePayrollServices
        Assemblies references from: EasePayrollServices, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
                System.Web.Services
                System
                mscorlib
                System.Data
                System.Xml
                ICSharpCode.SharpZipLib
                Assemblies references from: ICSharpCode.SharpZipLib, 
Version=0.85.5.452,
Culture=neutral, PublicKeyToken=null
                        mscorlib
                        System
                mscorlib
        Ease.Payroll.NetTiers.Entities
        Assemblies references from: Ease.Payroll.NetTiers.Entities,
Version=1.1.388.1398, Culture=neutral, PublicKeyToken=null
                mscorlib
                Ease.Common.Nettiers.Entities
                Assemblies references from: Ease.Common.Nettiers.Entities,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
                        mscorlib
                        Microsoft.Practices.EnterpriseLibrary.Caching
                        Microsoft.Practices.EnterpriseLibrary.Common
                        System
                        System.Configuration
                        
Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography
                System
                Ease.Common.Security
                Assemblies references from: Ease.Common.Security, 
Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                        mscorlib
                        Microsoft.Practices.EnterpriseLibrary.Caching
                        Microsoft.Practices.EnterpriseLibrary.Common
                        System.Windows.Forms
                        System.Web.Services
                        System.Xml
                        System.Configuration
                        
Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography
                        System
                        System.Core
                Ease.Payroll.Common.Interface
                Assemblies references from: Ease.Payroll.Common.Interface,
Version=1.1.0.1398, Culture=neutral, PublicKeyToken=null
                        mscorlib
                Ease.Common.Interface
                Assemblies references from: Ease.Common.Interface, 
Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                        mscorlib
                        System.Data
                        System
                Ease.Payroll.Common.Security
                Assemblies references from: Ease.Payroll.Common.Security,
Version=1.1.0.1398, Culture=neutral, PublicKeyToken=null
                        Ease.Common.Security
                        Assemblies references from: Ease.Common.Security, 
Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                                mscorlib
                                Microsoft.Practices.EnterpriseLibrary.Caching
                                Microsoft.Practices.EnterpriseLibrary.Common
                                System.Windows.Forms
                                System.Web.Services
                                System.Xml
                                System.Configuration
                                
Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography
                                System
                                System.Core
                        mscorlib
                Microsoft.Practices.ObjectBuilder2
                System.Data
                System.Xml
        mscorlib
        System.Data
        Ease.Common.Report
        Assemblies references from: Ease.Common.Report, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                mscorlib
                Ease.Common.Interface
                Assemblies references from: Ease.Common.Interface, 
Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                        mscorlib
                        System.Data
                        System
                System.Data
                System.Configuration
                System
        System
        Ease.Common.Nettiers.Entities
        Assemblies references from: Ease.Common.Nettiers.Entities, 
Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                mscorlib
                Microsoft.Practices.EnterpriseLibrary.Caching
                Microsoft.Practices.EnterpriseLibrary.Common
                System
                System.Configuration
                Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography
        Ease.Common.Security
        Assemblies references from: Ease.Common.Security, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                mscorlib
                Microsoft.Practices.EnterpriseLibrary.Caching
                Microsoft.Practices.EnterpriseLibrary.Common
                System.Windows.Forms
                System.Web.Services
                System.Xml
                System.Configuration
                Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography
                System
                System.Core
        System.Web.Services
        Ease.Common.Utility
        Assemblies references from: Ease.Common.Utility, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                mscorlib
                System
                System.Data
                System.Core
                Ease.Common.Interface
                Assemblies references from: Ease.Common.Interface, 
Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
                        mscorlib
                        System.Data
                        System
                System.Drawing
                ICSharpCode.SharpZipLib
                Assemblies references from: ICSharpCode.SharpZipLib, 
Version=0.85.5.452,
Culture=neutral, PublicKeyToken=null
                        mscorlib
                        System
                mscorlib
                System.Configuration
        System.Configuration
----------------------------------------------------


Here is the complete output from the run:

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_string_heap:
assertion `index < meta->heap_strings.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_string_heap:
assertion `index < meta->heap_strings.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_string_heap:
assertion `index < meta->heap_strings.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_blob_heap:
assertion `index < meta->heap_blob.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_blob_heap:
assertion `index < meta->heap_blob.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_blob_heap:
assertion `index < meta->heap_blob.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_string_heap:
assertion `index < meta->heap_strings.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_string_heap:
assertion `index < meta->heap_strings.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_blob_heap:
assertion `index < meta->heap_blob.size' failed

** (WinformsCLV2POC.exe:6688): WARNING **: The following assembly referenced
from
C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\Ease.Payroll.NetTiers.Data.WebServiceClient.dll
could not be loaded:
     Assembly:       (assemblyref_index=0)
     Version:    25964.25959.25673.18176
     Public Key: 0907d8af90186095
The assembly was not found in the Global Assembly Cache, a path listed in
the MONO_PATH environment variable, or in the location of the executing
assembly
(C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\Debug\).


** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_blob_heap:
assertion `index < meta->heap_blob.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_string_heap:
assertion `index < meta->heap_strings.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_string_heap:
assertion `index < meta->heap_strings.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_blob_heap:
assertion `index < meta->heap_blob.size' failed

** (WinformsCLV2POC.exe:6688): WARNING **: Could not load file or assembly
', Version=25964.25959.25673.18176, Culture=neutral,
PublicKeyToken=0907d8af90186095' or one of its dependencies.

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_blob_heap:
assertion `index < meta->heap_blob.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_string_heap:
assertion `index < meta->heap_strings.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_string_heap:
assertion `index < meta->heap_strings.size' failed

** (WinformsCLV2POC.exe:6688): CRITICAL **: mono_metadata_blob_heap:
assertion `index < meta->heap_blob.size' failed

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or
assembly ', Version=25964.25959.25673.18176, Culture=neutral,
PublicKeyToken=0907d8af90186095' or one of its dependencies.

File name: ', Version=25964.25959.25673.18176, Culture=neutral,
PublicKeyToken=0907d8af90186095'




Thanks in advance for any help and/or guidance you can provide.

-Daniel


-- 
View this message in context: 
http://n4.nabble.com/failed-to-load-type-from-configuration-tp1569224p1574025.html
Sent from the Mono - General mailing list archive at Nabble.com.
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to