September 19, 2008 at 9:00 am
Below given funtionality works for me when i run the application locally in my machine using the default webserver provided by the visual studio. But the same fails when i host my application on application server(publish files) or IIS(creating virtual directly)
RS.CreateDataSource(name, ConfigurationManager.AppSettings["DATASOURCESFOLDER"].ToString(), true, definition, null);
warnings = RS.CreateReport(m_ReportTitle, parentPath, true, definition, props);
I could get the error message saying Access Denied when i execute this in debug mode using the custom server where i point the URL to the applicaiton where it is hosted. I.e., my IIS virtual directly site pointing to my website.
System.Net.WebException: The request failed with HTTP status 401: Unauthorized. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at ReportService.ReportingService.CreateDataSource(String DataSource, String Parent, Boolean Overwrite, DataSourceDefinition Definition, Property[] Properties) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\reportsweb\34b1b2bc\dbd2353\App_WebReferences.leh6yoy4.1.cs:line 2247 at CopyofAdhocReporting.CreateDataSource() in c:\Reports\Oasis\Reports\MSC.Reports\Web\AdhocReports\CopyofAdhocReporting.aspx.cs:line 713Error Occured @/ReportsWeb/AdhocReports/CopyofAdhocReporting.aspxSystem.Net.WebException: The request failed with HTTP status 401: Unauthorized. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at ReportService.ReportingService.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\reportsweb\34b1b2bc\dbd2353\App_WebReferences.leh6yoy4.1.cs:line 1121 at CopyofAdhocReporting.PublishReport(String reportName)
I am not clear why this is happening only when i host the application.
Any help would be greatly appreciated.
Thanks,
Suman
September 21, 2008 at 9:52 pm
Hi Suman,
Go to directory settings and try unchecking "Anonymous Access"....checkbox...
I hope...it will help to some extent...
Thanks...
Niraj
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply