<p>I have the following javascript:</p>

<pre><code>$.ajax({
  type: "POST",
  dataType: "json",
  url: "/Home/Submit",
  data: {
    email: strEmail,
    message: strMessage
  },
  success: function(result) {
    //alert('here');
    alert(result.message);
  },
  error: function(error) {
    alert(error);
  }
});
</code></pre>

<p>This makes a call to this function:<BR></p>

<pre><code>public JsonResult Submit(string Email, string Message) {
  return Json(new {
    message = "yep"
  });
}
</code></pre>

<p>This works fine in debug mode on the inbuilt webserver.</p>

<p>However if I go to the virtual dir directly it does not and hits the error bit. I attached to the process and the code behind never gets hit. </p>

<p>I am using Vista. </p>

<p>Additionally how do you get the error description in the bit where it says  alert(error);</p>

<p>Thanks,</p>

<p>Alex</p>

Predicate is a delegate. You can not inherit from a delegate type.
If you want to get the inverted value, use the following:
```
```
Predicate<T> p;
Predicate<T> inverted = t => !p(t);
```
```