HttpClient PostAsync() retournera jamais de réponse

Mon problème est très similaire à ce question ici. J'ai un authenticationService Classe qui fait un HttpClient PostAsync() et ne jamais retourner le résultat quand je suis en cours d'exécution à partir de l'ASP projet, mais quand je la mettre en œuvre sur une Console Application, elle fonctionne très bien.

C'est mon Service d'Authentification de Classe.

public class AuthenticationService : BaseService
{
    public async Task<Token> Authenticate (User user, string url)
    {
        string json = JsonConvert.SerializeObject(user);
        StringContent content = new StringContent(json, Encoding.UTF8, "application/json");

        HttpResponseMessage response = await _client.PostAsync(url, content);
        string responseContent = await response.Content.ReadAsStringAsync();
        Token token = JsonConvert.DeserializeObject<Token>(responseContent);

        return token;
    }
}

Et c'est là où il se bloque

HttpResponseMessage response = await _client.PostAsync(url, content);

Voici mon Contrôleur d'appeler le service

 public ActionResult Signin(User user)
    {
        //no token needed to be send - we are requesting one
        Token token =  _authenticationService.Authenticate(user, ApiUrls.Signin).Result;


        return View();
    }

Voici un exemple de la façon dont j'ai été tester le service en utilisant une Application de Console et il fonctionne très bien.

class Program
{
    static void Main()
    {

        AuthenticationService auth = new AuthenticationService();

        User u = new User()
        {
            email = "[email protected]",
            password = "password123"
        };

        Token newToken = auth.Authenticate(u, ApiUrls.Signin).Result;

        Console.Write("Content: " + newToken.user._id);

        Console.Read();

    }
}

Je vous remercie d'avance pour votre aide.

OriginalL'auteur Erik | 2015-12-03