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

两盒软妹~` 提交于 2019-12-01 16:33:30

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)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!