[Mono-list] TypeloadException in web service call in get_method_info

Andrus kobruleht2 at hot.ee
Sun May 17 17:41:09 EDT 2009


In 2.4 asmx web service call returns strange exception below.
In ASP .NET same assemblies work OK.

How to fix ?

Andrus.

Server Error in '/' Application

--------------------------------------------------------------------------------

Could not load type 'Business.FormDefinition' from assembly 'Business, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Description: HTTP 500. Error processing request.

Stack Trace:

System.TypeLoadException: Could not load type
'Business.FormDefinition' from assembly 'Business, Version=1.0.0.0, 
Culture=neutral, PublicKeyToken=null'.

at (wrapper managed-to-native) 
System.Reflection.MonoMethodInfo:get_method_info 
(intptr,System.Reflection.MonoMethodInfo&)
at System.Reflection.MonoMethod.get_Attributes () [0x00000] in 
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/corlib/System.Reflection/MonoMethod.cs:183
at System.Reflection.MethodBase.get_IsPublic () [0x00000] in 
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/corlib/System.Reflection/MethodBase.cs:125
at System.Web.Services.Protocols.LogicalTypeInfo..ctor (System.Type t) 
[0x0021c] in 
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerType.cs:131
at System.Web.Services.Protocols.TypeStubManager.GetLogicalTypeInfo 
(System.Type t) [0x0002a] in 
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs:331
at System.Web.Services.Protocols.TypeStubManager.GetTypeStub (System.Type t, 
System.String protocolName) [0x00000] in 
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs:315
at System.Web.Services.Protocols.HttpSoapWebServiceHandler..ctor 
(System.Type type) [0x00007] in 
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpSoapWebServiceHandler.cs:54
at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler 
(System.Web.HttpContext context, System.String verb, System.String url, 
System.String filePath) [0x00113] in 
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebServiceHandlerFactory.cs:156
at System.Web.Script.Services.ScriptHandlerFactory.GetHandler 
(System.Web.HttpContext context, System.String requestType, System.String 
url, System.String pathTranslated) [0x000a1] in 
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Web.Extensions/System.Web.Script.Services/ScriptHandlerFactory.cs:63
¬ System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, 
System.String url, Boolean ignoreContextHandler) [0x00054] in 
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Web/System.Web/HttpApplication.cs:1634
at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, 
System.String url) [0x00000] in 
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Web/System.Web/HttpApplication.cs:1614
at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () [0x0071f] 
in 
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Web/System.Web/HttpApplication.cs:1252

--------------------------------------------------------------------------------
Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 
2.0.50727.1433 



More information about the Mono-list mailing list