I have been getting this "System.NotSupportedException" exception for a while now, I ran out of options. I get this error when I try to access the findAllUsers() funtion from my browser.
I have model class:
Public Class pUsers
Public Property UserId() As Long
Public Property Username() As String
Public Property Password() As String
Public Property Email() As String
Public Property Cell() As String
Public Property DateCreated() As Date
Public Property LastLogin() As DateTime
End Class
The ServiceAPIserver class has a function that looks like this:
Public Function findAllUsers() As List(Of pUsers) Implements IServiceAPIServer.findAllUsers
Using mde As New AllMyAPIEntities()
Return mde.UserEntities.[Select](Function(ue) New pUsers() With {
.UserId = ue.UserId,
.Cell = wrapper.DecryptData(ue.Cell),
.DateCreated = ue.DateCreated,
.Email = wrapper.DecryptData(ue.Email),
.LastLogin = ue.LastLogin,
.Password = ue.Password,
.Username = wrapper.DecryptData(ue.Username)}).ToList()
End Using
End Function