Unable to get a simple web service Running Error 500

Hi,

I was taking Xamarin for a ride. Tried to make a simple web service using an Empty Web Project.

The code goes as follows:

namespace Services
{
using System;
using System.Web;
using System.Web.Services;

public class Servicio : System.Web.Services.WebService
{

    public string HolaMundo( string name)
    {
        return "Hola Mundo";
    }

}

}

And when running the error I'm getting is:

System.ArgumentNullException
null key
Parameter name: key

Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): mscorlib.
Exception stack trace:
at System.Collections.Hashtable.get_Item (System.Object key) [0x00006] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/corlib/System.Collections/Hashtable.cs:316
at System.Web.Services.Protocols.TypeStubManager.GetLogicalTypeInfo (System.Type t) [0x00010] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs:324
at System.Web.Services.Protocols.TypeStubManager.GetTypeStub (System.Type t, System.String protocolName) [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs:313
at System.Web.Services.Protocols.SoapDocumentationHandler..ctor (System.Type type, System.Web.HttpContext context) [0x00045] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentationHandler.cs:64
at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler (System.Web.HttpContext context, System.String verb, System.String url, System.String filePath) [0x0013d] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebServiceHandlerFactory.cs:164
at System.Web.Script.Services.ScriptHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String pathTranslated) [0x000b6] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/System.Web.Extensions/System.Web.Script.Services/ScriptHandlerFactory.cs:70
at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) [0x00055] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/System.Web/System.Web/HttpApplication.cs:1633
at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/System.Web/System.Web/HttpApplication.cs:1614
at System.Web.HttpApplication+c__Iterator6.MoveNext () [0x00844] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/System.Web/System.Web/HttpApplication.cs:1276
Version Information: 3.2.0 ((no/7c7fcc7 Tue Jul 23 19:59:39 EDT 2013); ASP.NET Version: 4.0.30319.17020

I'm absolutely lost in here, since the web service is so simple!

Any help will be mostly appreciated.

Posts

Sign In or Register to comment.