Answered by:
System.Net.WebException: The request failed with HTTP status 401: Unauthorized.

Question
-
When I Preview an Rdl file in Visual Studio 2005 Its working fine. Once I deploy to the website I got HTTP status 401 error msg. I am I gave NTFS permission to ReportServer folder.
Error details
System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'TestSource'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'FidelityGeneva'. ---> 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 Microsoft.ReportingServices.ReportProcessing.ReportProcessing.ReportRuntimeDataSourceNode.OpenConnection(DataSource dataSourceObj, ReportProcessingContext pc)
vichu- Moved by jack 321 Monday, June 16, 2008 6:32 AM off topic
Thursday, June 12, 2008 1:16 PM
Answers
-
Paul,
Thanks for your reply. I solved this problem by adding Network service NTFS permission to web service folder.
vichu- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, May 11, 2012 5:43 AM
Friday, June 20, 2008 1:14 AM -
vichu said:
Paul,
Thanks for your reply. I solved this problem by adding Network service NTFS permission to web service folder.
vichu
Hi vichu, if you read my first post properly, I had already told you to check NETWORK SERVICE permissions on your folder.
Anyways, I'm glad that you solved you problem. For any further queries, please post in the ASMX Web Services and XML Serialization forums as suggested by Xun-Ye.
Always mark the post that helped you as "Answer". That helps future users to locate answers quickly.- Edited by Somnath Paul Friday, June 20, 2008 3:53 AM edit
- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, May 11, 2012 5:43 AM
Friday, June 20, 2008 3:52 AM
All replies
-
vichu said:
When I Preview an Rdl file in Visual Studio 2005 Its working fine. Once I deploy to the website I got HTTP status 401 error msg. I am I gave NTFS permission to ReportServer folder.
Error details
System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'TestSource'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'FidelityGeneva'. ---> 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 Microsoft.ReportingServices.ReportProcessing.ReportProcessing.ReportRuntimeDataSourceNode.OpenConnection(DataSource dataSourceObj, ReportProcessingContext pc)
vichu
I think there is a problem in your web service deployment..
Are you deploying it on the IIS?
Could you please tell how did you deploy it on IIS ?
If this is an ASP.NET application, then you have to give ASPNET and NETWORKSERVICE priviledges..
You also have to create a virtual directory for your web service..
And finally you have to provide web service extension to your files..
Then you can use the browse feature in your IIS to test whether your web service is running properly..
Also I feel there is some connection problem with you 'TestSource' datasource.. Please check your connection string properly..
Hope this helps !!
Always mark the post that helped you as "Answer". That helps future users to locate answers quickly.- Edited by Somnath Paul Thursday, June 12, 2008 2:10 PM edit
- Proposed as answer by Somnath Paul Friday, June 13, 2008 4:41 PM
Thursday, June 12, 2008 2:09 PM -
Paul,
I am calling external web service. Its running on someother server. I checked the connection string property its look good.
thanks
vichu
vichuMonday, June 16, 2008 12:23 AM -
vichu said:
Paul,
I am calling external web service. Its running on someother server. I checked the connection string property its look good.
thanks
vichu
vichu
Hi Vishu,
In that case could you post some code?
That would make it easy for us to understand your problem.
Always mark the post that helped you as "Answer". That helps future users to locate answers quickly.Monday, June 16, 2008 4:12 AM -
Discussion in ASMX Web Services and XML Serialization
or
Discussion in .NET Framework Networking and Communication
Please remember to mark the replies as answers if they help and unmark them if they provide no help.Monday, June 16, 2008 6:32 AM -
Paul,
Thanks for your reply. I solved this problem by adding Network service NTFS permission to web service folder.
vichu- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, May 11, 2012 5:43 AM
Friday, June 20, 2008 1:14 AM -
vichu said:
Paul,
Thanks for your reply. I solved this problem by adding Network service NTFS permission to web service folder.
vichu
Hi vichu, if you read my first post properly, I had already told you to check NETWORK SERVICE permissions on your folder.
Anyways, I'm glad that you solved you problem. For any further queries, please post in the ASMX Web Services and XML Serialization forums as suggested by Xun-Ye.
Always mark the post that helped you as "Answer". That helps future users to locate answers quickly.- Edited by Somnath Paul Friday, June 20, 2008 3:53 AM edit
- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, May 11, 2012 5:43 AM
Friday, June 20, 2008 3:52 AM