Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2006

Tip: Looking for answers? Try searching our database.

System.Net.WebException: The operation has timed-out.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tellierprobable@gmail.com - 23 Aug 2006 00:30 GMT
I have an ASP.NET 1.1 web site that calls a custom web service. This
web service makes a call to Reporting Services web service to generate
reports. We are using SQL Server 2000.

'--------------------------------------------------------------------------­--------------------

''''''''''''''''''''''''' Function in custom web service to call
Reporting Services web service Render
Private Function RenderReport(ByVal reportName As String, ByVal
reportFormat As String, ByVal parameters() As ParameterValue) As Byte()

       Try
           rptService.Credentials =
System.Net.CredentialCache.DefaultCredentials

           Return rptService.Render(reportName, reportFormat, _
           Nothing, Nothing, parameters, _
           Nothing, Nothing, Nothing, Nothing, Nothing, Nothing,
Nothing)
       Catch ex As Exception
           WriteToErrorLog(ex.ToString())
           Throw ex
       End Try
   End Function
'--------------------------------------------------------------------------­--------------------

Most of the time everything works fine but intermittently an error is
generated and written to our application's error log. Any insight on
resolving this issue would be appreciated. I have also posted to the
microsoft.public.sqlserver.reportingsvcs group.

System.InvalidOperationException: There is an error in XML document (1,

948). ---> System.Net.WebException: The operation has timed-out.
  at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32
size)
  at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32
userOffset, Int32 desiredChars, Boolean& readToUserBuffer)
  at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32
count)
  at System.Xml.XmlScanner.Read()
  at System.Xml.XmlScanner.IncrementalRead(Object destBuffer, Int32
index, Int32 count, XmlTextReader reader, IncrementalReadType readType)

  at System.Xml.XmlTextReader.IncrementalRead(Object buffer, Int32
index, Int32 count, IncrementalReadType readType)
  at
System.Xml.Serialization.XmlSerializationReader.ReadByteArray(Boolean
isBase64)
  at
System.Xml.Serialization.XmlSerializationReader.ToByteArrayBase64(Boolean

isNull)
  at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read1­71_RenderResponse()

  --- End of inner exception stack trace ---
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, XmlDeserializationEvents events)
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader)
  at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClien­tMessage

message, WebResponse response, Stream responseStream, Boolean
asyncCall)
  at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
  at
AADAC.STORS.ReportWriter.ReportingServicesWebService.ReportingService.Rende­r(String

Report, String Format, String HistoryID, String DeviceInfo,
ParameterValue[] Parameters, DataSourceCredentials[] Credentials,
String ShowHideToggle, String& Encoding, String& MimeType,
ParameterValue[]& ParametersUsed, Warning[]& Warnings, String[]&
StreamIds)
  at AADAC.STORS.ReportWriter.ReportWriter.RenderReport(String
reportName, String reportFormat, ParameterValue[] parameters)
Jim Hong - 13 Sep 2006 22:12 GMT
> I have an ASP.NET 1.1 web site that calls a custom web service. This
> web service makes a call to Reporting Services web service to generate
[quoted text clipped - 82 lines]
>    at AADAC.STORS.ReportWriter.ReportWriter.RenderReport(String
> reportName, String reportFormat, ParameterValue[] parameters)

We have experienced the same intermittent problem. Have you guys resolved the issue? Interestingly enough I found this Microsoft KB article..

http://support.microsoft.com/default.aspx?scid=kb;en-us;815209

Posted from http://www.topxml.com/renntp using reNNTP: the website based NNTP reader.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.