question

hannes-0836 avatar image
0 Votes"
hannes-0836 asked hannes-0836 commented

testing if a url is reachable or not

Hi, i'm trying to write a C# function, which should check if url is reachable or not.

This is what i got so far:
86483-image.png



The Problem is, that the function always runs into to catch part. It doesn't care if the url is reachable or not.

Can anyone help me with this problem?

dotnet-csharp
image.png (65.2 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I already got the problem fixed :)

1 Vote 1 ·

Did you also check the exception details (ex.Message, ex.InnerException, etc.)?



0 Votes 0 ·

0 Answers