Wednesday, March 21, 2012

web service call failed: 500 using ajax hovermenu and web service

Hi there,

I'm using a hovermenuextender attached to a templatefield of a gridview, and everything seemed to work fine.. however I've moved on to add dynamic attributes to the hovermenu. Now I get the error "web service call failed: 500" in place of the output I want (on the hovermenu's panel).

When accessing the web service I created (directly through the browser) everything works fine..

here's my hovermenuextender dynamic attributes

DynamicContextKey='<%=eval("refnumber") %>'

DynamicServiceMethod="GetSearchDetails"

DynamicServicePath="Services.asmx"

DynamicControlID="lbdynamiccontent"

I've done a bit more fiddling.. so this extra info may be useful.. it may not (I've only just started playing with this).. using firebug, I can see the response to the post to the webservice fails with "Invalid web service call, missing value for parameter:".. I tried swapping my service for the helloworld one, and that works fine! Why is my parameter not being sent? I was thinking the parameter is the dynamiccontextkey - is that correct?

Any help would be greatly appreciated! I also saw error 12030 instead of 500 crop up, but that seems to have gone (!!!)

cheers, Chris

Hi,

I fail to reproduce the issue. Can you show me more of your codes?


i think you are using the DynamicPopulate instead of Hovermenu. In that case i think you should check its documentationhttp://ajax.asp.net/ajaxtoolkit/DynamicPopulate/DynamicPopulate.aspx. Basically i think you are having passing the contextKey in the WebService, can you pls check if the db field is not null or it contains some value.

No comments:

Post a Comment