473,487 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Passing User Credentials to SSRS

1 New Member
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

Expand|Select|Wrap|Line Numbers
  1. Function IsValid(ByVal Url As String) As Boolean
  2.         Dim URLRes As Net.FileWebResponse
  3.         Dim URLReq As Net.FileWebRequest
  4.         Dim myURI As New Uri("file://www.example.com/" & Url & ".jpg")
  5.         Try
  6.     URLReq = Net.FileWebRequest.Create(myURI)
  7.     URLReq.Credentials = Net.CredentialCache.DefaultCredentials
  8.     URLRes = URLReq.GetResponse()    
  9.     Return True
  10.         Catch ex As Exception
  11.             Return False
  12.         End Try
  13.     End Function
Jun 6 '12 #1
0 1486

Sign in to post your reply or Sign up for a free account.

Similar topics

7
2596
by: Wade Wegner | last post by:
Hello, I have been desperately trying to programmatically authenticate a windows user, create their credentials, and then redirect them to a different server while passing the credentials at the...
5
4376
by: cdlipfert | last post by:
Our intranet is running under windows integrated security. We have domain users that want to access our intranet site via ssl vpn. SSL VPN can not authenticate against services that run under...
0
5454
by: James | last post by:
Dim connection As New ConnectionOptions connection.Username = m_ntid connection.Password = m_pwd connection.Authority = "ntlmdomain:" & m_domain Dim scope As New ManagementScope("\\" +...
2
2142
by: Baheri | last post by:
In .Net 2.0 is there a standard way of passing user credential to authenticate a user using Web Services?
0
3182
by: kkos | last post by:
I noticed the following issue posted as a double-hop issue in many discussion boards but found no answers that explain how to pass the second hop with windows auth from IIS ASPX page to remote SQL...
0
929
by: sloan | last post by:
You should check out this post: http://forums.asp.net/thread/1225321.aspx maybe you re invented the wheel a little bit ( or maybe you had to, not sure).
3
6727
by: antonyliu2002 | last post by:
I have a website (call it WinAuthWeb) that uses Integrated Windows Authentication. In my ASP.NET web application, I collect user name, password and domain info and pass them to WinAuthWeb for...
1
7520
by: LamSoft | last post by:
I am writing a web portal to modify the users account password. However, it is confusing me... for a few days for this error. It has been work fine while debugging on the development web...
1
20318
by: =?Utf-8?B?Qi5BaGxzdGVkdA==?= | last post by:
Hi all, This is something that I have been toying with for about a week now. What I want to achieve is Install a Service with Customised parameters (using InstallUtil.exe) for User Name. Example...
0
1133
by: crowl | last post by:
Following scenario: client (c# app) -asp.net web service - sql server The client hast to authenticated via Basic authentications. This user account should be used to access the sql server on...
0
7108
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5445
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4875
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.