79816953

Date: 2025-11-11 17:31:59
Score: 2
Natty:
Report link

It could be because of following reasons:

- Please check your hostname in your connection string is that correct?

- Please check is there any network traffic blockage on specific DSN you are dealing with?

- Please confirm are you using correct connection string?

for your reference please see following link official documentation of Azure AI foundry it could be helpful for you

https://ai.azure.com/doc/azure/ai-foundry/how-to/develop/sdk-overview?tid=6dba51f8-a494-49aa-8bdc-109e51dc0052

May be following code could solve your issue:

var connectionString = Environment.GetEnvironmentVariable("PROJECT_CONNECTION_STRING");
var parts = connectionString.Split(';');
if (parts.Length != 4)
    throw new InvalidOperationException("Connection string format invalid.");
var host = parts[0];
System.Net.Dns.GetHostEntry(host);  

Hopefully it may solve your issue . cheers!

Reasons:
  • Blacklisted phrase (1): cheers
  • Blacklisted phrase (1): is there any
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: ISK