[Mono-list] failed to load type from configuration

incandenza djohnson at ease.us.com
Thu Feb 25 10:57:47 EST 2010


Hello,

I'm stuck trying to understand the error below.  This is an attempt to load
a net-tiers web service provider from configuration.  The configuration
looks like this:
App.Config:

------------------
...
	<configSections>		
		<section name="netTiersService"
type="Ease.Payroll.NetTiers.Data.Bases.NetTiersServiceSection,
Ease.Payroll.NetTiers.Data" allowDefinition="MachineToApplication"
restartOnExternalChanges="true" />
		...
	</configSections>
...
	<netTiersService defaultProvider="WsNetTiersPayrollProvider">
		<providers>
			<add name="WsNetTiersPayrollProvider" 
			type="Ease.Payroll.NetTiers.Data.WebServiceClient.WsNetTiersProvider,
Ease.Payroll.NetTiers.Data.WebServiceClient" 
		
url="http://localhost/NetTiersPayrollWebServices/EasePayrollServices.asmx"
/>
		</providers>
	</netTiersService>
...
------------------

The assembly "Ease.Payroll.NetTiers.Data.WebServiceClient.dll" exists (as
well as its dependencies) in the same folder as the executable.

Also, this works in Microsoft.Net.

Any help would be appreciated in tracking down why (and what) this is
failing to load.

Thanks in advance!

-Daniel

C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\x86\Debug>"C:\Program
 Files\Mono-2.6.1\bin\mono.exe" --debug WinformsCLV2POC.exe

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

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

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

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

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

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

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

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

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

** (WinformsCLV2POC.exe:2976): WARNING **: The following assembly referenced
fro
m
C:\djohnson\project\mono_winforms_test\WinformsCLV2POC\bin\x86\Debug\Ease.Payr
oll.NetTiers.Data.WebServiceClient.dll could not be loaded:
     Assembly:       (assemblyref_index=0)
     Version:    17012.20601.26994.26998
     Public Key: (none)
The assembly was not found in the Global Assembly Cache, a path listed in
the MO
NO_PATH environment variable, or in the location of the executing assembly
(C:\d
johnson\project\mono_winforms_test\WinformsCLV2POC\bin\x86\Debug\).


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

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

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

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

** (WinformsCLV2POC.exe:2976): WARNING **: Could not load file or assembly
', Ve
rsion=17012.20601.26994.26998, Culture=neutral, PublicKeyToken=null,
Retargetabl
e=Yes' or one of its dependencies.

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

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

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

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

Unhandled Exception: System.Configuration.ConfigurationErrorsException:
Could no
t find type: Ease.Payroll.NetTiers.Data.WebServiceClient.WsNetTiersProvider,
Eas
e.Payroll.NetTiers.Data.WebServiceClient
  at System.Web.Configuration.ProvidersHelper.InstantiateProvider
(System.Config
uration.ProviderSettings providerSettings, System.Type providerType)
[0x00072] i
n
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.1\mcs\class\System.Web\System.Web
.Configuration_2.0\ProvidersHelper.cs:64
  at System.Web.Configuration.ProvidersHelper.InstantiateProviders
(System.Confi
guration.ProviderSettingsCollection configProviders,
System.Configuration.Provid
er.ProviderCollection providers, System.Type providerType) [0x0003e] in
C:\cygwi
n\tmp\monobuild\build\BUILD\mono-2.6.1\mcs\class\System.Web\System.Web.Configura
tion_2.0\ProvidersHelper.cs:72
  at Ease.Payroll.NetTiers.Data.DataRepository.LoadProviders () [0x00000] in
<fi
lename unknown>:0
  at Ease.Payroll.NetTiers.Data.DataRepository.get_MasDeductionTypeProvider
() [
0x00000] in <filename unknown>:0
  at WinformsCLV2POC.DeductionTypeMgmtFormController.Load () [0x000c5] in
C:\djo
hnson\project\mono_winforms_test\WinformsCLV2POC\DeductionTypeMgmtFormController
.cs:36
  at WinformsCLV2POC.DeductionTypeMgmtForm..ctor () [0x0003b] in
C:\djohnson\pro
ject\mono_winforms_test\WinformsCLV2POC\DeductionTypeMgmtForm.Designer.cs:24
  at (wrapper remoting-invoke-with-check)
WinformsCLV2POC.DeductionTypeMgmtForm:
.ctor ()
  at WinformsCLV2POC.Program.Main () [0x0001f] in
C:\djohnson\project\mono_winfo
rms_test\WinformsCLV2POC\Program.cs:90

-- 
View this message in context: http://n4.nabble.com/failed-to-load-type-from-configuration-tp1569224p1569224.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list