F
Fredrik Melin
Hi,
I am trying to return a Class from a webservice, the Class is very complex.
(over 50 functions, several sub-classes, etc)
The problem is, if I do the following in the webservice:
<WebMethod()> _
Public Function RemoteInventory(ByVal Product_ID As String) As
DacsaSupport.Inventory
Dim cInventory As New Inventory
If cInventory.Populate(Product_ID) Then
Return cInventory
Else
Return Nothing
End If
End Function
When I compile the webservice project, it compiles OK, but when trying to
update the reference of the webservice, I get "Jit debugger" access denied,
then "Application unavailable" on the service, aspnet_wp service crashes and
restarts.
Removing this function, and the webservice runs OK.
I suspect that its because reflection cannot decode some items in my
Inventory object, but can I get it to work anyway?
Ive tried to change the function to return an object instead, that works
until I actually accessing the function, then I get the same error and
service crash.
Any tips are welcome.
- Fredrik
I am trying to return a Class from a webservice, the Class is very complex.
(over 50 functions, several sub-classes, etc)
The problem is, if I do the following in the webservice:
<WebMethod()> _
Public Function RemoteInventory(ByVal Product_ID As String) As
DacsaSupport.Inventory
Dim cInventory As New Inventory
If cInventory.Populate(Product_ID) Then
Return cInventory
Else
Return Nothing
End If
End Function
When I compile the webservice project, it compiles OK, but when trying to
update the reference of the webservice, I get "Jit debugger" access denied,
then "Application unavailable" on the service, aspnet_wp service crashes and
restarts.
Removing this function, and the webservice runs OK.
I suspect that its because reflection cannot decode some items in my
Inventory object, but can I get it to work anyway?
Ive tried to change the function to return an object instead, that works
until I actually accessing the function, then I get the same error and
service crash.
Any tips are welcome.
- Fredrik