If you are updating your .NET Framework to 2.0 and using Visual Studio .NET 2005 then it is important to perform proper regression testing on your Cognos SDK application and its C# (c-sharp) code.
The default timeout for httpwebrequests in Visual Studio .NET 2005 is 100 seconds. If a single Cognos SDK request from C# (c-sharp) takes longer than 100 seconds then you will receive the following error:
"The operation has timed out
Stack trace:
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequestrequest)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
..."
The fix for this issue is to modify the default request timeout by setting the Timeout property of the Cognos 8 service that is being used.
Your sample Cognos SDK C# (c-sharp) code should be set as follows:
reportService1 rptService = new reportService1();
rptService.Timeout = 500000; //timeout in milliseconds
// rptService.Timeout = Timeout.Infinite; --> note: this is not recommended for a PRODUCTION environment