Solved

ASP.NET Report viewer control problem

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now