I have a program that uses C# HttpWebRequest to obtain metadata via the API. This code has been working fine for years on my Win10 PC. I transfer the identical program files to my new Win11 PC and it is timing out on API calls. No info except it's a web timeout exception.
If I grab the URL being used for these calls and plug it into the address of my Edge browser on the Win11 PC, it responds with the desired response instantly!
I'm stumped on this. Do web calls to TMdB require some kind of authorization or certificate (other than the API key, which is contained in the URL), and maybe the Win11 machine is missing the certificate or something?
The Win11 PC is on WiFi internet while the Win10 PC is on a wired (Ethernet) connection. But the Win11 internet tests at 200/200 and everything else that accesses the web works fine on it.
Any ideas would be appreciated, and TIA!
找不到电影或节目?登录并创建它吧。
superboy97 的回复
于 2023 年 11 月 22 日 3:19上午
A firewall on the Win11 OC may eventually block the query coming from your application.
David Flannery 的回复
于 2023 年 11 月 22 日 4:49上午
Thanks, hadn’t thought of that. Not sure what “Win11 OC” means.(?) Also, any tips on how to configure the firewall to avoid this problem? Or how to tell for sure that is the problem?
superboy97 的回复
于 2023 年 11 月 22 日 4:54上午
This is a typo. That just mean "Win11 PC".
The trafic from and to your application should be allowed to go through the firewall.
You can try to disable it completely for a check. Don't forget to re-enable it.
David Flannery 的回复
于 2023 年 11 月 22 日 5:53上午
That was it, but really bizarre is that after turning the firewall back on, and _not _having allowed access to the program, the blocking no longer occurs. (??)