Hi, I am trying to check if an image file exists. If it does exist then use it, otherwise, use a default image. I am trying to pass integrated windows login credentials to get a response but I always return false. It seems to not like the credentials. Does anyone have input here? Thanks in advance!

Here is my code:

PS - All this code is done inside the Custom Code of SSRS

Code:
Function IsValid(ByVal Url As String)
...