[Mono-devel-list] mono and .net web services

Daniel Pinto de Mello e Silva dsilva at ccs.neu.edu
Wed Jan 14 22:26:16 EST 2004


I am trying to use Mono in conjunction with IIS.  There are two IIS
servers and one Linux workstation.  The first IIS server hosts the web
service.  The second IIS server hosts the server page acting as the
service's client.  The Linux workstation is used for C# development with

The web-service ASMX file is being interpreted just fine in the first
IIS server.  From its WSDL file Mono's wsdl tool created a client
proxy.  The proxy library (compiled with Mono's mcs) is placed in the
second IIS server.

The server-page ASPX file references the client proxy to communicate
with the web-service.  It sits on the second IIS server.  Upon
interpretation, the server-page causes IIS to complain:

Server Error in '/home/dsilva' Application.
File or assembly name System.Web.Services, or one of its dependencies,
was not found. 

Exception Details: System.IO.FileNotFoundException: File or assembly
name System.Web.Services, or one of its dependencies, was not found.

The offending line is the one that tries to construct a client-proxy
object.  I've tried passing variations of these arguments to mcs, but
they don't help:

After giving up on IIS, I tried the same client-proxy and server-page on
the Linux workstation using the Mono XSP server, but it gives me this
error whenever I submit a form twice (say, Add followed by Subtract
buttons in a calculator):

Server error in '/' application
Error restoring page viewstate. 
Description: Error processing request. 
Error Message: HTTP 500. Error restoring page viewstate. 

Stack Trace: 

System.IndexOutOfRangeException: Array index is out of range
in <0x003ea>
in <0x0012b>
in <0x00121> System.Convert:FromBase64CharArray (char[],int,int)
in <0x00056> System.Convert:FromBase64String (string)
in <0x00068> System.Web.UI.ObjectStateFormatter:Deserialize (string)
in <0x00017> System.Web.UI.LosFormatter:Deserialize (string)
in <0x000ad> System.Web.UI.Page:LoadPageStateFromPersistenceMedium ()

Two questions then:
Are .Net assemblies compiled with Mono's mcs supposed to work under
Microsoft's VM and IIS?
Does XSP support multiple executions of the same server-page script
without resetting the viewstate to be an empty string?

Thanks and regards,

More information about the Mono-devel-list mailing list