title: The function evaluation requires all threads to run - MVC
body: <p>The following error is occuring when passing values from a model to a parameter inside an If Statement.</p>
  
  <p><a href="https://i.stack.imgur.com/ZDeJY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZDeJY.png" alt="QuickWatch Error Description"></a></p>
  
  <p><a href="https://i.stack.imgur.com/I6kFp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I6kFp.png" alt="Threads"></a></p>
  
  <p>This is the code the issue is occurring, I'm pretty sure its not the <em>ValidateUserPassword</em> method.</p>
  
  <pre><code>if (PSFNetSystem.ValidateUserPassword(model.Server, model.Username, model.Password) &lt; 0)
  {
      ModelState.AddModelError("Password", "Failed to login");
      return View(model);
  }
  </code></pre>
  
  <p>Any help is appreciated, thanks.</p>