title: Web Services does not work in mono 4
body: <p>I have an app that uses Webservices with ASP.Net and am supposed to maintain. So I was sharpening my skills on the topic. I have no problem running Webservice in Window with VS 2013 but have issues with mono. </p>
  
  <p>Here is the error I get when I run the code</p>
  
  <pre><code>System.ArgumentNullException
  Value cannot be null.
  Parameter name: path1
  
  Description: HTTP 500.Error processing request.
  
  Details: Non-web exception. Exception origin (name of application or object): mscorlib.
  Exception stack trace:
    at System.IO.Path.Combine (System.String path1, System.String path2) [0x00006] in &lt;filename unknown&gt;:0 
    at System.Web.Services.Configuration.WsdlHelpGeneratorElement.get_HelpGeneratorPath () [0x0000c] in &lt;filename unknown&gt;:0 
    at System.Web.Services.Protocols.DocumentationServerProtocol.Initialize () [0x001f1] in &lt;filename unknown&gt;:0 
    at System.Web.Services.Protocols.ServerProtocol.SetContext (System.Type type, System.Web.HttpContext context, System.Web.HttpRequest request, System.Web.HttpResponse response) [0x00022] in &lt;filename unknown&gt;:0 
    at System.Web.Services.Protocols.ServerProtocolFactory.Create (System.Type type, System.Web.HttpContext context, System.Web.HttpRequest request, System.Web.HttpResponse response, System.Boolean&amp; abortProcessing) [0x00014] in &lt;filename unknown&gt;:0 
  </code></pre>
  
  <p>and here are the codes</p>
  
  <p><strong>WebService1.asmx</strong></p>
  
  <pre><code>&lt;%@ WebService Language="C#" CodeBehind="WebService1.asmx.cs" Class="DemoService.WebService1" %&gt;
  </code></pre>
  
  <p><strong>WebService1.asmx.cs</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Services;
  using System.Xml;
  
  namespace DemoService
  {
      /// &lt;summary&gt;
      /// Summary description for WebService1
      /// &lt;/summary&gt;
      [WebService(Namespace = "http://tempuri.org/")]
      [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
      [System.ComponentModel.ToolboxItem(false)]
      // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
      // [System.Web.Script.Services.ScriptService]
      public class WebService1 : System.Web.Services.WebService
      {
  
          [WebMethod]
          public string HelloWorld()
          {
              return "Hello World";
          }
  
          [WebMethod]
          public XmlElement AddMe(int a, int b)
          {
              XmlDocument doc = new XmlDocument(); 
              for(int i=0; i&lt;5; i++)
              {
                  XmlNode n = doc.CreateNode( XmlNodeType.Element,  i.ToString(), "me.com.aisee");
                  for(int j=0; j&lt;5; j++)
                  {
                      //n.AppendChild(doc.CreateElement(j.ToString()));
                  }
              }
  
              return doc.DocumentElement;
  
          }
      }
  }
  </code></pre>
  
  <p>I don't what I miss here. to the best of my knowledge, it should just work fine. Here is my Mono version</p>
  
  <pre><code>~$ mono --version
  Mono JIT compiler version 4.3.0 (tarball Fri Jun 12 11:43:58 UTC 2015)
  Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
      TLS:           __thread
      SIGSEGV:       altstack
      Notifications: epoll
      Architecture:  amd64
      Disabled:      none
      Misc:          softdebug 
      LLVM:          supported, not enabled.
      GC:            sgen
  </code></pre>