coecho
asked on
SQL Server Reporting Services: Unable to Render a Report
I'm trying to render a report in a C# Web Page. The reporting server is on a different server. I'm having trouble with the ExecutePermissions. When I set the permissions using a specific username, password - access is granted and the report renders:
output.ReportExecutionCred entials = (System.Net.ICredentials)n ew System.Net.NetworkCredenti al("lusern ame", "password", "domain");
//output.ReportExecutionCr edentials = (System.Net.ICredentials)S ystem.Net. Credential Cache.Defa ultCredent ials;
However - I don't have the user's passwords and need to be able to set this dynmcially. When I try:
output.ReportExecutionCred entials = (System.Net.ICredentials)S ystem.Net. Credential Cache.Defa ultCredent ials;
the DefaultCredentinals come back as empty and I keep receiving "access denied." How can I set this without using a username and password so every user on my website can render these reports?
any help would be much appreciated!
output.ReportExecutionCred
//output.ReportExecutionCr
However - I don't have the user's passwords and need to be able to set this dynmcially. When I try:
output.ReportExecutionCred
the DefaultCredentinals come back as empty and I keep receiving "access denied." How can I set this without using a username and password so every user on my website can render these reports?
any help would be much appreciated!
ASKER
I don't understand what you mean by the "Web User". The user is alredy signing on using Windows Authentication. Are you saying to grant execute permissions on the stored procedures for every single individual signing on? Can you provide a C# code example of what you're describing? thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
What if I don't want to allow "anonymous user" access on IIS? I have it set now to just use Windows Integrated Security. Is there a way in C# code to allow access?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
and then gran exec permissions on the needed stored procs.