Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASP.NET Report viewer control problem

Posted on 2006-11-09
6
Medium Priority
?
1,033 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

721 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