473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

'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'm guessing the path or method may be incorrect? I've put
services.asmx in the root folder and services.vb was slipped into the
app_code directory.

The other problem would be with the contextkey, but debugging info
within the webservice never gets thrown (it does when I run the
service directly through the browser) so would a funny parameter do
that?
Any help would be greatly appreciated! I also saw error 12030 instead
of 500 crop up, but that seems to have gone (!!!)

cheers,
Chris

Jun 5 '07 #1
1 8163
On 5 Jun, 12:53, Not Me <clhumphr...@gmail.comwrote:
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).
Aha, I realised the helloworld service worked fine.. it was just
anything I created with parameters.. I had my service set up as

Public Function getSearchDetails(ByVal refno As String) As String

so changed this to

Public Function getSearchDetails(ByVal contextKey As String) As String

and all is well!

hope that it useful to any googler's out there.

cheers,
Chris

Jun 5 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: jabailo | last post by:
I wrote a program that loops through a file of records. It parses each line in the file and sends them to a web service that inserts them into an AS400DB2 database using Asynch calls. This is...
4
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and...
1
by: JDeats | last post by:
So I'm looking for the source behind this sample: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/HoverMenu/HoverMenu.aspx I want to attach a HoverMenu control to a DataGridView control and...
7
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
我们现在遇到一个问题,通过wcf创建的webservice,选择windows service作为宿主,采用java作为客户端调用成功,但是无法使用asp.net ajax调用。...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.