Solved

ASP.NET Report viewer control problem

Posted on 2006-11-09
6
1,028 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 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