[Mono-list] Mono ASP.NET Webservice

Daniel Nauck dna at mono-project.de
Tue Oct 7 05:41:58 EDT 2008


Hello,

lighttpd 1.4.x does not work, see:

http://trac.lighttpd.net/trac/ticket/377

As a workaround you can force HTTP 1.0, so .NET/Mono don't send the
Expect header.


Daniel

tim.jenks at realtimeworlds.com schrieb:
> Hi List,
> 
>  
> 
> I am currently investigating the best approach for deploying an
> persistent ASP.NET Webservice (.asmx) under Linux/Mono. This is a SOAP
> ASP.NET Webservice that must run over SSL.
> 
>  
> 
> I have tried the following:
> 
>  
> 
> ·         Apache2/mod_mono, configured using using mono-server2. Using
> AutoHosting. (Apache/2.2.8 (Ubuntu) mod_mono/1.9 mod_ssl/2.2.8
> OpenSSL/0.9.8g Server at timjenks2 Port 443). This is functional, and I
> can call WebMethods fine. One gotcha was that the application lifetime
> method Application_Start does not get called, some refactoring to a
> stateless service was needed to get everything running.
> 
>  
> 
> ·         Lighttpd/fastcgi-mono-server2. This serves the .asmx OK when
> browsing, but upon making SOAP calls to the WebMethod, the server 404s
> (see below). I am assuming this is just misconfiguration of either
> fastcgi-mono-server2 or lighttpd, but any hints would be appreciated.
> 
>  
> 
> Does anyone have any recommendations for the best approach for deploying
> ASP.NET Webservices under Mono? Reading material seems to be lacking, so
> any advice would be outstanding.
> 
>  
> 
> Secondly, are stateful ASP.NET Applications ala IIS supported (i.e. the
> service lifetime methods Application_Start/End are called, and the state
> of the service is maintained between calls)? If so, does anyone have
> pointers as to configuration settings under either Lighty or mod_mono?
> (I’ve done the usual trawling, but have failed to turn up anything
> concrete).
> 
>  
> 
> Thanks in advance
> 
>  
> 
> Tim Jenks
> 
> Software Engineer
> 
> Realtime Worlds Ltd
> 
>  
> 
>  
> 
> 404 SOAP call under Lighttpd:
> 
> The remote server returned an error: (404) Not Found.
> 
> <?xml version="1.0" ?>
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> 
>       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html
> 
>       xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
> lang="en"><head><title>Error
> 
>       404</title><style type="text/css">body
> {font-family:"Verdana","DejaVu Sans",
> 
>      sans-serif;font-weight:normal;font-size:
> .7em;color:black;background-color: white}
> 
> p {font-family:"Verdana","DejaVu
> Sans",sans-serif;font-weight:normal;color:black;margin-top:
> 
>       -5px}
> 
> b {font-family:"Verdana","DejaVu
> Sans",sans-serif;font-weight:bold;color:black;margin-top: -5px}
> 
> h1 { font-family:"Verdana","DejaVu
> Sans",sans-serif;font-weight:normal;font-size:18pt;color:red
> 
>       }
> 
> h2 { font-family:"Verdana","DejaVu Sans",
> 
>      sans-serif;font-weight:normal;font-size:14pt;color:maroon }
> 
> pre {font-family:"Lucida Console","DejaVu Sans
> Mono",monospace;font-size: 0.9em}
> 
> div.bodyText {font-family: "Verdana","DejaVu Sans",sans-serif}
> 
> table.sampleCode  100%; background-color: #ffffcc;
> 
> .errorText  red; font-weight: bold
> 
> .marker {font-weight: bold; color: black;text-decoration: none;}
> 
> .version  gray;
> 
> .error {margin-bottom: 10px;}
> 
> .expandable { text-decoration:underline; font-weight:bold; color:navy;
> cursor:pointer;
> 
>       }</style></head><body><h1>Server Error in '/authWS'
> Application</h1><hr
> 
>       style="color: silver"/><h2><em>The resource cannot be found.</em></h2>
> 
> <p><strong>Description: </strong>HTTP 404. The resource you are looking
> for (or one of its
> 
>       dependencies) could have been removed, had its name changed, or is
> temporarily
> 
>       unavailable.  Please review the following URL and make sure that
> it is spelled
> 
>       correctly.</p>
> 
> <p><strong>Resource URL: </strong>/authWS/Gateway.asmx/Admin_Test</p>
> 
> <hr style="color: silver"/><strong>Version information: </strong> Mono
> Version: 2.0.50727.42;
> 
>       ASP.NET Version: 2.0.50727.42</body></html>
> 
> <!--
> 
> [System.Web.HttpException]: Path '/authWS/Gateway.asmx/Admin_Test' was
> not found.
> 
>   at System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext
> context) [0x00000]
> 
>   at System.Web.HttpApplication+<>c__CompilerGenerated2.MoveNext ()
> [0x00000]
> 
>   at System.Web.HttpApplication.Tick () [0x00000]
> 
> -->
> 
>  
> 
> 
> ____________________________________________________________________
> DISCLAIMER
> 
> This message and any attachments contain privileged and confidential
> information intended for the use of the addressee named above. If you
> are not the intended recipient of this message, you are hereby notified
> that any use, dissemination, distribution or reproduction of this
> message is prohibited. Please note that we cannot guarantee that this
> message or any attachment is virus free or that it has not been
> intercepted and amended. The views of the author may not necessarily
> reflect those of Realtime Worlds Ltd.
> 
> 
> 
> Realtime Worlds Ltd is registered in Scotland, number 225628. Registered
> Office: 152 West Marketgait, Dundee, DD1 1NJ.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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