[Mono-winforms-list] iis to mono webservice not working
hugopq
hugopq at gmail.com
Mon Jun 11 18:56:22 UTC 2012
Hi
I'm new to mono and i'm trying to get a webservice to work.
I'm developping in windows using IIS and it works, but when I upload to the
server (which uses mono) i can't make it work and don't understand why,
This is my service, it just returns a string:
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
namespace com.es.naiad.web.services.TestService
{
/// <summary>
/// Summary description for TestService
/// </summary>
[WebService(Namespace =
"http://luna-fs.com/naiad.web/services/TestService")]
public class TestService : WebService
{
[WebMethod]
public string GetServerStatus()
{
try
{
if (this.CheckServerAvailability())
return "online";
return "offline";
}
catch (Exception)
{
//TODO: log exception;
return "offline";
}
}
private bool CheckServerAvailability()
{
//TODO: check server availability
return true;
}
}
}
this is the error...
http://luna-fs.com/naiad/web/services/TestService/TestService.asmx
it sayt it can't find the type, but the dll is in the bin folder.
please help!
thanks
--
View this message in context: http://mono.1490590.n4.nabble.com/iis-to-mono-webservice-not-working-tp4649877.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
More information about the Mono-winforms-list
mailing list