Custom security report access from ASP.Net application
Hi,
I have implemented Forms authentication on SSRS 2005 based on
the msdn article.i have tested by directly going to the report manager
and also the report server and custom security works fine.
How to access reports from asp.net application after implementing SSRS
2005 to Custom Security SSRS 2005.i tried to do various things,but
failed .
Is there a way that any one can tell how to achieve this.
Thanks
[473 byte] By [
vkv] at [2007-12-24]
Hi
i am not using report viewer and i am redirecting users to the report on the server directly.i hope this shouldn't be a big difference and i am using the following code.i dont know whether to use first 3 lines of code .in either the case of using it or not it just redirects to the login page instead of the URI that i need to be in.it some how unable to translate the cookie ,i guess.Any suggestions.
Dim server AsNew Microsoft.Samples.ReportingServices.CustomSecurity.ReportServerProxy()
server.LogonUser("username", "password", Nothing)
server.Url = "http://as013146/ReportServer/ReportService2005.asmx"
Dim
myCred As
NetworkCredential = New
NetworkCredential("domainname" & "\" & "username", "password")Dim
redirecturl As
System.Uri = New
System.Uri("http://AS013146/Reports/Pages/Folder.aspx")Dim
HttpWRequest As
HttpWebRequest = WebRequest.Create(redirecturl)Dim
MyCredentialCache As
CredentialCache = New
CredentialCacheMyCredentialCache.Add(redirecturl,
"Basic", myCred)HttpWRequest.Credentials = MyCredentialCache
HttpContext.Current.Response.Redirect(
"http://AS013146/Reports/Pages/Folder.aspx", False
)
Thanks
vkv at 2007-10-8 >
