Avatar of No1Coder
Flag for United States of America asked on

Microsoft JScript runtime error: Sys.Net.WebServiceFailedException when runbning slideshow control

Am trying to get ajax slideshow control to work.  Am following examples, but when I run the page, gets exception:

Microsoft JScript runtime error: Sys.Net.WebServiceFailedException:

My code is essentially identical to that in the examples.  The web service and form are both in the root of my project.

Seen other posts with this error, but no solution.


Avatar of undefined
Last Comment

8/22/2022 - Mon
Christopher Kile

What makes you think that your web service didn't fail?

I don;t think it is finding the web service.  Is there someiting I need to do ti "install" it?

Currently, I have just pleced the code (asmx) in the root directory of my project.  Does it need to be installed on IIS?

I really don;t understand wht a web service is needed in the first place.  A simple method call would seem to me to work fine.  There is no information on how to do this that I can find.
Christopher Kile

A Web Service is needed because the AJAX runtime will call that Web Service to provide data to the AJAX client, which the client will use to update the browser window without requiring a full postback of the browser.  That's the point of Asynchronous JavaScript And XML (AJAX), to be able to do just this.

Here is a tutorial:

Using ASP.NET AJAX with Web Services Tutorials

This includes links to tutorials for the current version.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy

So I see that something extra may be needed in web.config (which I added), but it still doesn;t work.

I don't understand my Microsoft would publish such an incomplete example on how to use this control.
Christopher Kile

Would you please show me your code and the portion of web.config you modified to add the service to your Web application?

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

No solution found
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.