Click here to Skip to main content
15,911,711 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a Mvc App. I am trying to reach a https service.When I host the project with IIS express it works fine
In fact the problem is that my wcf client only works fine when Fiddler captures the packets ,strange but true....All the time I guarantee to close or abort connection by using "Using()" and call the method below inside the client's dispose method...

C#
public static void DisposeServiceClient(ICommunicationObject client)
{
    if (client != null)
    {
        if (client.State == System.ServiceModel.CommunicationState.Faulted)
        {
            client.Abort();
        }
        else
        {
            client.Close();
        }

    }
}



By the way I am using proxy ,I have read about Fiddler changing proxy.The issue may be proxy but still couldnt figure out how to resolve it
http://stackoverflow.com/questions/4801189/httpwebrequest-doesnt-work-except-when-fiddler-is-running[^]

[Edited Question]
Posted
Updated 30-Sep-15 6:38am
v2
Comments
F-ES Sitecore 30-Sep-15 8:59am    
You have to configure your IIS to use https. If you're just testing and it works without https then use it without https and when you deploy it for real enable https then. It's possible to have the service work locally on https but it's far from straight forward. If you want to have a crack at it just google "wcf https local iis" or something, but personally I wouldn't bother, it's not worth the effort.

1 solution

no need to enable SSL for this it should work normally, have you tried IIS trough visual studio ,go to property -> web -> use local IIS web server do not check iis express
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900