Click here to Skip to main content
15,891,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

When i am trying to execute a stored procedure and get the result set to fill in a grid from a silverlight application i am getting the error message as

The Remote server returned an error: Not found

While most of the stored procedures are working without any problem only 2 stored procedures are returning this error while executing from a silverlight enabled WCF service. When the same procedure is being executed on the SQL server query browser it is working fine, but when called from the silverlight application it is showing the error.

Is this due the large number of rows in stored procedure output or the execution time of the stored procedure or is it anything else?

Can somebody help me out with this issue please ??

Thanks in advance
Ravikiran
Posted
Comments
Herman<T>.Instance 10-Apr-12 14:30pm    
well......
what is the time out setting?
are all the queries run by the same connectionstring (user!)? Maybe some code to show to elaborate the question?
Roliking 11-Apr-12 0:13am    
yes, all the queries are run by the same connection string but i am executing only one stored procedure at a time and not all the stored procedures together...


<operationcontract()> Private Function fnStoreProcedureGetDataSet(ByVal strQry As String, ByVal strpara As String) As List(Of SearchData)
Try
retScon.ConnectionString = settings.ConnectionString
retScmd.CommandText = strQry
If strpara.Trim.Length > 0 Then
Dim strPar() As String = Split(strpara, "!@!") // The parameters are concatenated with !@! and later split to individual parameters.
For intcount = 0 To strPar.Length - 1
retScmd.Parameters.AddWithValue(strPar(intcount).Split("|").ElementAt(0), strPar(intcount).Split("|").ElementAt(1))
Next
End If
retScmd.CommandType = CommandType.StoredProcedure
retScmd.Connection = retScon
sadaDapt.SelectCommand = retScmd
sadaDapt.Fill(datsData)
retScon.Close()
Dim IntClnCnt As Integer = 0
Dim StrColumnName As String = String.Empty
For IntClnCnt = 0 To datsData.Tables(0).Columns.Count - 1
If StrColumnName = String.Empty Then
StrColumnName = datsData.Tables(0).Columns(IntClnCnt).ColumnName
Else
StrColumnName = StrColumnName & "," & datsData.Tables(0).Columns(IntClnCnt).ColumnName
End If
Next
Dim clsRpts As New ClsCommonRpt
Return clsRpts.fnGetLargeReportData(datsData)
Catch ex As Exception
Return Nothing
End Try
End Function
Herman<T>.Instance 15-Apr-12 10:49am    
do the queries that run in error take longer than 15 seconds to process?
Roliking 16-Apr-12 0:17am    
yes it is and the number of rows fetched is also significantly large...
but there are other procedures with large output and which takes more than 15sec to execute but they work well.. cannot understand whats happening in this case..
is there any specific issue??
Herman<T>.Instance 16-Apr-12 9:16am    
what is your connection time out setting?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900