title: A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll?
body: <p>'Hi 
  I am calling a web service from javascript/jquery as follows:</p>
  
  <pre><code>function Test(userid) {
      alert(userid);
      $.ajax({
          type: "POST",
          url: "testWebService.asmx/GetData",
          data: "{ userid:'" + userid + "'}",
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success: function (response) {
          alert("1")
          var dATAS = (typeof (response.d)) == 'string' ? eval('(' + response.d + ')') : response.d;
          alert("2")                          
  
          },
          failure: function (msg) {
          }
      });
  }
  </code></pre>
  
  <p>the userid get alerted,</p>
  
  <p>the webservice is tested and it is working, the other alerts doesnt show.</p>
  
  <p>the output shows this:</p>
  
  <p>A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll</p>
  
  <p>what Did I have wrong?</p>
  
  <p><strong>Edit: I copied the function to another existing webservice in the solution, it worked with no problem</strong></p>