Webservice crash?

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
 
F

Fredrik Melin

With SP1 for 1.1 I still get the same error, but now I can see that the
error is StackOverflowException

Anyone have any thoughts?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top