1

I'm porting a .Net application to Mono running via FastCGI on Nginx and generally everything is going swell.

ScriptMethods/WebMethods are not working however -- they throw a 500:

System.Web.HttpException: Method POST is not allowed when accessing file /site/path/widget/editwidgets.aspx/SaveLayout

Switching to [ScriptMethod(UseHttpGet=true)] doesn't help and just leads to other problems.

What am I missing here? I've seen what I think is a solution for lighttpd (mapping all .Net extensions to .aspx -- though I'm not sure why that would work -- it certainly appears that Mono is handling the request).

  • Have you tried [this][1]? [1]: http://stackoverflow.com/questions/7613374/using-asmx-using-lighttpd-and-mono-fastcgi/8131138 – Rui Marques Nov 17 '11 at 09:38

1 Answers1

0

I'm porting several app's also and ScriptMethod/PageMethod is a pain. This shows a solution that I use.

Community
  • 1
  • 1
Rui Marques
  • 3,429
  • 1
  • 22
  • 26