[Mono-aspnet-list] iis to mono webservice not working

hugopq hugopq at gmail.com
Tue Jul 3 16:00:51 UTC 2012


I've installed mono on my computer, and the same thing happens.

The server can't find the type in my dll:

http://mono.1490590.n4.nabble.com/file/n4650293/ws1.png 

but I've created a simple webservice without using code-behind and it
works...

http://mono.1490590.n4.nabble.com/file/n4650293/ws2.png 

now I'm sure there's something i need to change, but have no idea what...
please help.


hugopq wrote
> 
> 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-tp4649877p4650293.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list