Hola a todos
el webservice me da el siguiente error:
Detalles de la excepción: System.InvalidOperationException: Formato de solicitud no reconocido para la dirección URL, finaliza de manera inesperada en '/getActividades'.
el codigo es el siguiente
Código ASP:
Ver originalPublic Function getActividades() As List(Of jsonDatos)
Dim tareas As New jsonTareas
Dim lista As New List(Of jsonDatos)()
Dim dv As New DataView(cGantt.getActividades())
'Dim cadena As String = ""
For i As Integer = 0 To dv.Count - 1
Dim j As New jsonDatos
tareas.id = dv.Item(i).Item("id_planactividades")
tareas.name = dv.Item(i).Item("actividad")
'cadena = cadena & tareas.ToJSON & ","
j.jsonDato = tareas.ToJSON
lista.Add(j)
Next
'cadena = cadena.Substring(0, cadena.Length - 1)
'Dim json As jsonDatos
'json.jsonDato = cadena
Return lista
End Function
End Class
Public Class jsonTareas
Public id As Integer
Public name As String
Public PercentDone As Integer
Public Documento As String
Public BaselinePercentDone As Integer
Public Priority As Integer
Public Responsible As String
Public StartDate As String
Public EndDate As String
Public BaselineStartDate As String
Public BaselineEndDate As String
Public expanded As String
Public children As String
Public Function ToJSON() As String
Dim jsonSerializer As New System.Web.Script.Serialization.JavaScriptSerializer()
Return jsonSerializer.Serialize(Me)
End Function
End Class
Public Class jsonDatos
Public jsonDato As String
End Class
¿A que se deberá este error?
Muchas gracias