unhandled exception of type 'System.Net.WebExcepti
I modified the C# code for programmatic rendering for MRS (Prof SQL Server Reporting Services - Chapter 9) to use a database table table for parameter input rather than a form. The application uses the ReportingService's Render method to retrieve a byte array containing a report. The application works but I sometimes recieve the following error message
An unhandled exception of type 'System.Net.WebException' occurred in system.web.services.dll
Additional information: The operation has timed-out.
I saw the following post on MSDN
An unhandled exception of type 'System.Net.WebException' occurred in system.web.services.dll Additional information: The operation has timed-out.
To avoid this problem, set the timeout value for the XML Web service call to infinite, as shown in this example:
Service1 obj = new Service1();
obj.TimeOut = -1; // infinite time out.
My question is how do I incorporate the code into my application - I get a
Invalid token '=' in class, struct, or interface member declaration
Error message
|