[Mono-list] System.ServiceModel cannot loaded in 2.4 , mod_mono

Miguel de Icaza miguel at novell.com
Fri Jun 18 19:39:35 EDT 2010


> mod_mono and Apache are installed in Fedora 11 using yum from standard 
> repositories.
> Trying to invoke asmx web service throws exception below about missing 
> System.ServiceModel

You have an incomplete setup.   You need the System.ServiceModel
assembly.

The mono-test-install flagging the incomplete setup is an initial hint,
you likely need something like "mono-full" or "mono-complete".

> 
> How to use web service in Fedora 11 64bit ?
> 
> Andrus.
> 
> mono-test-install returns:
> 
> Active Mono: /usr/bin/mono
> Warning: pkg-config could not find mono installed on this system
> No dotnet pkgconfig found, Windows.Forms, System.Drawing and others will not 
> work
> 
> 
> Apache error_log :
> 
> [Fri Jun 18 20:13:06 2010] [notice] Apache/2.2.15 (Unix) DAV/2 mod_mono/2.4 
> PHP/5.2.9 mod_python/3.3.1 Python/2.6 mod_ssl/2.2
> .11 OpenSSL/0.9.8k-fips mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming 
> normal operations
> 
> ** (/usr/lib64/mono/2.0/mod-mono-server2.exe:27048): WARNING **: The 
> following assembly referenced from /tmp/apache-temp-aspn
> et-0/f7bbe34a/assembly/shadow/0e155008/4e8bb9f0_409ee9f8_00000001/MyApp.Service.dll 
> could not be loaded:
>      Assembly:   System.ServiceModel    (assemblyref_index=6)
>      Version:    3.0.0.0
>      Public Key: b77a5c561934e089
> The assembly was not found in the Global Assembly Cache, a path listed in 
> the MONO_PATH environment variable, or in the locat
> ion of the executing assembly 
> (/tmp/apache-temp-aspnet-0/f7bbe34a/assembly/shadow/0e155008/4e8bb9f0_409ee9f8_00000001/).
> 
> 
> ** (/usr/lib64/mono/2.0/mod-mono-server2.exe:27048): WARNING **: Could not 
> load file or assembly 'System.ServiceModel, Versio
> n=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its 
> dependencies.
> 
> ** (/usr/lib64/mono/2.0/mod-mono-server2.exe:27048): WARNING **: Missing 
> method .ctor in assembly /tmp/apache-temp-aspnet-0/f
> 7bbe34a/assembly/shadow/0e155008/4e8bb9f0_409ee9f8_00000001/MyApp.Service.dll, 
> type System.ServiceModel.Activation.AspNetCompa
> tibilityRequirementsAttribute
> 
> ** (/usr/lib64/mono/2.0/mod-mono-server2.exe:27048): WARNING **: Can't find 
> custom attr constructor image: /tmp/apache-temp-a
> spnet-0/f7bbe34a/assembly/shadow/0e155008/4e8bb9f0_409ee9f8_00000001/MyApp.Service.dll 
> mtoken: 0x0a00002d 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list




More information about the Mono-list mailing list