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

hugopq hugopq at gmail.com
Fri Jul 6 10:59:47 UTC 2012


I've found this 
http://mono.1490590.n4.nabble.com/Web-service-cannot-find-assembly-when-placed-to-subfolder-tp1506496.html
post  and tried to do that. but my server has no bin in root directory... so
instead i created the bin folder in root directory , stuffed my dlls in
there and it worked...

but now i get an error when Invoking the web.service...

http://mono.1490590.n4.nabble.com/file/n4650323/ws3.png 

you can check it here :  
http://localhost:8080/2.0/services/TestService.asmx web service 


Thanks!!!


hugopq wrote
> 
> I now believe that the behavior is somewhat like what is related on this 
> http://mono.1490590.n4.nabble.com/XSP-and-Bin-Directory-tp1496833.html
> POST .
> 
> tried using global.asax to import my dll but it says it can't find the
> namespace.
> 
> thanks.
> 
> 
> hugopq wrote
>> 
>> 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-tp4649877p4650323.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list