coecho
asked on
Access Denied When Rendering a Report Using System.Net.CredentailCache.DefaultCredentials
When I render a report on my local mahcine using the following code - it works correctly and the report is rendered - but with the same code - I'm getting an "401 - Access Denied" on another machine. What would affet the "System.Net.CredentialCach e.DefaultC redentials " so that it worked correctly in one instance but not in another?
ReportingServices2005.Serv erReportOu tput output = new .ReportingServices2005.Ser verReportO utput();
string reporttype = Request.QueryString["Docum ent"];
string reportname = "ReportName";
output.ReportParameters.Ad d("ReviewI D",Request .QueryStri ng["Review ID"]);
output.ReportExecutionUrl = System.Configuration.Confi gurationMa nager.AppS ettings["R eportServe r"];
output.ReportExecutionCred entials = System.Net.CredentialCache .DefaultCr edentials;
output.ReportPath = reportname;
output.OutputType = InfinityIncremented.Report ingService s2005.Outp utType.Ado bePDF;
thanks in advance for any help with this.
ReportingServices2005.Serv
string reporttype = Request.QueryString["Docum
string reportname = "ReportName";
output.ReportParameters.Ad
output.ReportExecutionUrl = System.Configuration.Confi
output.ReportExecutionCred
output.ReportPath = reportname;
output.OutputType = InfinityIncremented.Report
thanks in advance for any help with this.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.