After installing VS 2015 Update 3, sending HTTPS request to WebAPI development IIS Express causes SocketException

Eirik Fauske

I have a Desktop client making HTTPS requests to a WebServer hosted in Visual Studio IIS Express environment. I have been developing using VS 2015 Update 2 for several months and things have worked without issues.

However, yesterday I installed VS 2015 Update 3. First I had to install the locally issued SSL certificate on my computer (I'm fairly certain I didn't have to do this with Update 2). But once that was out of the way, things were working fine.

When I turned on my machine today and loaded my development environment, I get the following chain of exceptions when sending the HTTPS request:

HttpRequestException: An error occurred while sending the request.

WebException: The underlying connection was closed: An Unexpected error occurred on a send.

IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

SocketException: An existing connection was forcibly closed by the remote host

I have not made any other changes to my dev environment except upgrading Resharper from 9.2 to 2016.1, but I can't imagine that having anything to do with my issues.

Does anyone have any idea what could be causing my issues?

Update:

I don't get the Exceptions if I don't use SSL. So is seems to be some change to the IIS Express used by Visual Studio 2015 Update 3 which causes some SSL issues.

Eirik Fauske

It seems that my problem was caused by an incorrect approach to adding the new IIS Express 10.0 self signed SSL certificate as a trusted certificate.

Following "Resolution Number #1" in this blog post solved it for me: https://blogs.msdn.microsoft.com/robert_mcmurray/2013/11/15/how-to-trust-the-iis-express-self-signed-certificate/

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Will installing VS2015 update 3 VC++ redistributables break other software

From Dev

Visual Studio 2015 and IIS Express Renews Session ID on Each Request

From Dev

Can't run IIS Express from VS2015

From Dev

How to enable SSL for IIS Express in VS2015

From Dev

IIS Express won't start all services in VS 2015

From Dev

After installing VS2015 Update 2 I can no longer view website unless I go in debug mode

From Dev

T4 include Directive broken after installing VS2013 Update 3

From Dev

Few warnings after Installing VS2015 Community Edition with ISO

From Dev

TFS Build error after installing Visual Studio 2015 Update 1

From Dev

What to do after installing Update 1 to TFS 2015 fails

From Dev

After sending response, how to end the current request processing in Node/Express?

From Dev

Visual Studio 2015 update 3 not installing (no error or feedback)

From Dev

Rewrite Rule to IIS for HTTPS redirect to HTTP causes null HttpContext.Request.ContentType

From Dev

Run IIS Express without installing IIS

From Dev

IIS Express (Debug Mode) and HTTPS

From Dev

Errors while installing VS2015 tools for .NET Core 1.0 development

From Dev

sending https request using inetc

From Dev

Installing Xamarin for VS 2015 not working

From Dev

VSIX not installing dependencies in VS 2015

From Dev

VS 2015 installing curl/libcurl

From Dev

.NET Core project throwing error after installing VS 2017 alongside VS 2015

From Dev

IIS Express launched from VS 2015 cannot read config file with <aspNetCore> element

From Dev

Automatically Kill IIS Express Process After Debugging (VS Express 2013 Web)

From Dev

IIS Express Hangs with Curl Request

From Dev

VS 2015 Update 3 error for deleted copy assignment operator

From Dev

Test explorer empty in VS2015 CE Update 3 with xUnit

From Dev

Problems installing angular 2 packages using npm in VS2015 Update 2

From Dev

IIS Express 8 vs. IIS

From Dev

Sending an encrypted parameter in Request to a .Net core WebApi

Related Related

  1. 1

    Will installing VS2015 update 3 VC++ redistributables break other software

  2. 2

    Visual Studio 2015 and IIS Express Renews Session ID on Each Request

  3. 3

    Can't run IIS Express from VS2015

  4. 4

    How to enable SSL for IIS Express in VS2015

  5. 5

    IIS Express won't start all services in VS 2015

  6. 6

    After installing VS2015 Update 2 I can no longer view website unless I go in debug mode

  7. 7

    T4 include Directive broken after installing VS2013 Update 3

  8. 8

    Few warnings after Installing VS2015 Community Edition with ISO

  9. 9

    TFS Build error after installing Visual Studio 2015 Update 1

  10. 10

    What to do after installing Update 1 to TFS 2015 fails

  11. 11

    After sending response, how to end the current request processing in Node/Express?

  12. 12

    Visual Studio 2015 update 3 not installing (no error or feedback)

  13. 13

    Rewrite Rule to IIS for HTTPS redirect to HTTP causes null HttpContext.Request.ContentType

  14. 14

    Run IIS Express without installing IIS

  15. 15

    IIS Express (Debug Mode) and HTTPS

  16. 16

    Errors while installing VS2015 tools for .NET Core 1.0 development

  17. 17

    sending https request using inetc

  18. 18

    Installing Xamarin for VS 2015 not working

  19. 19

    VSIX not installing dependencies in VS 2015

  20. 20

    VS 2015 installing curl/libcurl

  21. 21

    .NET Core project throwing error after installing VS 2017 alongside VS 2015

  22. 22

    IIS Express launched from VS 2015 cannot read config file with <aspNetCore> element

  23. 23

    Automatically Kill IIS Express Process After Debugging (VS Express 2013 Web)

  24. 24

    IIS Express Hangs with Curl Request

  25. 25

    VS 2015 Update 3 error for deleted copy assignment operator

  26. 26

    Test explorer empty in VS2015 CE Update 3 with xUnit

  27. 27

    Problems installing angular 2 packages using npm in VS2015 Update 2

  28. 28

    IIS Express 8 vs. IIS

  29. 29

    Sending an encrypted parameter in Request to a .Net core WebApi

HotTag

Archive