[Mono-dev] TypeLoadException when porting WCF-application to Mono

Ole Bromose ob at dansound.dk
Mon May 21 19:56:03 UTC 2012


Hi,

I'm currently porting a WCP application to Mono. The application has 4 
netTcpBindings which are self-hosted. When trying to start the first 
Service Host, I get an exception and a text in the Console:

Exception:

System.TypeLoadException: Could not load type 
'System.ServiceModel.Description.ServiceCredentials' from assembly 
'System.ServiceModel, Version=4.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089'.

   at System.ServiceModel.ServiceHost..ctor (System.Type serviceType, 
System.Uri[] baseAddresses) [0x00000] in <filename unknown>:0


Console:

Could not load signature of 
System.ServiceModel.Description.ServiceCredentials:CreateSecurityTokenManager 
due to:

Could not load signature of 
System.ServiceModel.Security.SecurityCredentialsManager:CreateSecurityTokenManager 
due to:


I originally had "security=Transport". Changing this to "security=None" 
had no effect.

The ServiceCredentials class should be in System.ServiceModel. Is it not 
implemented in Mono? If not, is there a work-around?

Thanks,
Ole




More information about the Mono-devel-list mailing list