[Mono-list] method not allowed from Mono 2.2 call

Andrus kobruleht2 at hot.ee
Thu Jan 22 16:22:47 EST 2009


In mono 2.2  usual web servise call  using POST returns exception

System.Web.HttpException: Method not allowed

with stack trace

at System.Web.HttpMethodNotAllowedHandler.ProcessRequest 
(System.Web.HttpContext context) [0x00000]
at System.Web.HttpApplication+<Pipeline>c__Iterator5.MoveNext () 
[0x00000]
at System.Web.HttpApplication.Tick () [0x00000]

How to call web services in Mono 2.2 ?

Andrus.

Complete output:


<?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 405</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,code {font-family:"Lucida Console","DejaVu Sans 
Mono",monospace;font-size: 0.9em,white-space: pre-line}
div.bodyText {font-family: "Verdana","DejaVu Sans",sans-serif}
table.sampleCode {width: 100%; background-color: #ffffcc; }
.errorText {color: red; font-weight: bold}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; 
cursor:pointer; }</style></head><body><h1>Server Error in '/' 
Application</h1><hr style="color: silver"/><h2><em>Method not 
allowed</em></h2>
<p><strong>Description: </strong>HTTP 405. Error processing request.</p>
<p><strong>Stack Trace: </strong></p><table summary="Stack Trace" 
class="sampleCode">
<tr><td><pre>System.Web.HttpException: Method not allowed<br />  at 
System.Web.HttpMethodNotAllowedHandler.ProcessRequest 
(System.Web.HttpContext context) [0x00000] <br />  at 
System.Web.HttpApplication+&lt;Pipeline&gt;c__Iterator5.MoveNext () 
[0x00000] <br />  at System.Web.HttpApplication.Tick () [0x00000] 
</pre></td></tr>
</table>
<hr style="color: silver"/><strong>Version information: </strong> Mono 
Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433</body></html>
<!--
[System.Web.HttpException]: Method not allowed
  at System.Web.HttpMethodNotAllowedHandler.ProcessRequest 
(System.Web.HttpContext context) [0x00000]
  at System.Web.HttpApplication+<Pipeline>c__Iterator5.MoveNext () [0x00000]
  at System.Web.HttpApplication.Tick () [0x00000]
--> 



More information about the Mono-list mailing list