Solved

ASP.NET Report viewer control problem

Posted on 2006-11-09
6
1,029 Views
Last Modified: 2012-05-05
Hi All,

I have a problem connecting my ASP.NET application to the SQL Reporting Services viewer control. However, when I call the report viewer directly. e.g. http://server/reports . It has no problem at all.

Any helps / advice are appreciated.

It returns the following error:

Authentication failed because the remote party has closed the transport stream.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

[IOException: Authentication failed because the remote party has closed the transport stream.]
   System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) +1037426
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +297
   System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) +364
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +313
   System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +138
   System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +120
   System.Net.TlsStream.CallProcessAuthentication(Object state) +47
   System.Threading.ExecutionContext.runTryCode(Object userData) +66
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +166
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +145
   System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +728
   System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +44
   System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) +21
   System.Net.ConnectStream.WriteHeaders(Boolean async) +266
0
Comment
Question by:weichunglow
  • 2
  • 2
6 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17905505
This is the interesting thing:

    System.Net.Security.SslState

It seems to be trying to authenticate using SSL/TLS.

Bob
0
 
LVL 6

Author Comment

by:weichunglow
ID: 17910854
Yes, in fact, my website is secured by SSL, calling the reporting services resides on a secured LAN. Firewall configuration had been done.

0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17910875
That is interesting, since you are using a standard URL--http://server/reports

Bob
0
 
LVL 6

Author Comment

by:weichunglow
ID: 17912052
Got it, a silly mistake by one of our peer. :)

There is a hardcoded constant pointing the viewer to "http://localhost/reports", though we are setting the right path in the config.

Thanks guy~!
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 17964728
PAQd, 500 points refunded.

DarthMod
CS Moderator
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question