Web request fails, but only for localhost and when using System.Net.HttpWebRequest

后端 未结 1 1483
轻奢々
轻奢々 2021-01-18 07:51

I\'ve got a very weird problem with System.Net.HttpWebRequest, that\'s driving me nuts: When I run it with a localhost address, then it is either e

相关标签:
1条回答
  • 2021-01-18 08:19

    Just to check this part: "By inspecting the .NET code, I tracked down the error to the WSAConnect API returning a non-null value, but I can't see that this is of much help. (However, this is a 32bit API, whereas I'm running on a 64bit system. Could there be some strange 32/64bit problem?)"

    Make sure that in IIS, for the application pool, that you have 32-bit enabled (default is disabled).

    Also, I assume the binding is set correctly. (that last part [binding] was supposed to be a comment, but I didn't have the rep - it was deleted, apparently-or will be)

    0 讨论(0)
提交回复
热议问题