AJAX :: Slideshowextender GetSlide Method Failure?
Jul 7, 2010
I'll start off by stating that I've read numerous posts with the same or similar errors but haven't found anything to solve my issue. I'm getting a lengthy error message:
Sys.Net.WebServiceFailedException. The server method'GetSlides' failed witht he following error: <html>
<head> <title>Unknown web method GetSlides<br> ....
I appreciate any insight. See inserted code.
[Code]....
[Code]....
[Code]....
View 1 Replies
Similar Messages:
Jan 14, 2010
I've been scratching my head for what seems like ages. I'm sure its really simple to fix but I can't see it.
I have a class in App_Code that uses a bit of Linq.
var siteMap = SiteMapWrapper.BuildSiteMap(true);
var currentTopLevelParent = siteMap.Single(s => s.IsActive);
if (currentTopLevelParent != null)
I've developed this locally and all works fine. When I transfer to IIS hosting the same class fails to compile. I receive:
does not contain a definition for 'Single' and no extension method 'Single' accepting a first argument of type 'SiteMapWrapper' could be found (are you missing a using directive or an assembly reference?)
I confirmed that the virtual dir is running .NET 2.0 as it should. I also confirmed that the correct assemblies are being loaded in the web.config.
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
View 3 Replies
Mar 22, 2011
A page using SlideShowExtender works fine with IE8 and FF, but not IE9.I am wondering if anyone has made SlideShowExtender work for IE9.
View 5 Replies
Aug 7, 2010
I have the basic service...but I am trying to pulling the image url from an sql database table according to their id.
<%@ WebService Language="VB" %>
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
<System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
Public Class SlidesService
Inherits System.Web.Services.WebService
<WebMethod()> _
Public Function GetSlides() As AjaxControlToolkit.Slide()
Dim MySlides(2) As AjaxControlToolkit.Slide
MySlides(0) = New AjaxControlToolkit.Slide("ClassifiedImages/Image1.jpg", "Blue Hills", "Go Blue")
MySlides(1) = New AjaxControlToolkit.Slide("ClassifiedImages/Image2.jpg", "Sunset", "Setting sun")
MySlides(2) = New AjaxControlToolkit.Slide("ClassifiedImages/NoImage.jpg", "Winter", "Wintery...")
Return MySlides
End Function
End Class
View 2 Replies
Sep 6, 2010
I am using SlideHowExtender in MVC application. It is not working. I have put the same code in simple .aspx page it is working properly in same application.
Page : Views/Shared/Site.master
Image are in : Content/SlideShowHome
<script runat="Server" type="text/C#">
[code]...
View 3 Replies
Sep 29, 2010
I'm using Visual Studio 2010.
Are there any step by step tutorials on how to use the SlideSHowExtender to create a slideshow?
I have had a look before posting but couldn't find any step by step info.
Each time I try to drag the SlideShowExtender to a web form I get a round black circle with a black line through the middle, in other words it won't let me use it and I must be trying to use this control incorrectly.
View 1 Replies
Jun 22, 2010
This was programmer error - a problem with my SQL. I am populating a slideshow extender control successfully from a list of images maintain din a MySQL database. I have created a "back" button that executes the following javascript:
[Code]....
This correctly goes back to my web service method that fetches rows from my database. I issue an "order by" in the SQL to sort the rows returned in descending tiome order and have verified that they populate the slide array in that order. However, when the page renders, the slideshow appears to play them in almost a random order. Is there any trick to getting images in a slideshow array to play in a particular order?
View 1 Replies
Feb 15, 2011
How to sop SlideShowExtender Programmatically and Can use Target Control Image to View in it Other Pics by passing Image URL to it by code
View 2 Replies
Dec 14, 2010
I keep on drawing this error:Sys.Net.WebServiceFailedException: The server method 'GetPhotos' failed with the following error: System.Data.SqlClient.SqlException-- The parameterized query '(@ImageAlbumGUID nvarchar(100))SELECT * FROM [Image] WHERE [Image' expects the parameter '@ImageAlbumGUID',which was not suppliedI understand how it is drawing it, When I skip creating an album It does not create an ID, so instead I would like to show a default image not from the db. I have been trying to figure out if @ImageAlbumGUID is nothing then the show image.
[code]...
View 1 Replies
Jul 12, 2010
Recently I had to create a slideshow using the AJAX SlideShowExtender. One of the requirements was to have the images show up in a random order so visitors won't see the same slides over and over again. To do this I added some code to the GetSlides() function to reorder the slide array randomly. Here's the code:
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static AjaxControlToolkit.Slide[] GetSlides()
{
AjaxControlToolkit.Slide[] mySlide = new AjaxControlToolkit.Slide[]
[Code]....
View 1 Replies
Jan 23, 2011
I'm using the slide show extender and want to combine it with some effects (e.g. fadeout of old picture / fadeIn new picture on picture change).
How do I do this? Can I combine the SlideshowExtender with the AnimationExtender control?
View 2 Replies
Mar 28, 2010
I have been struggled for a day without success. Also I am not sure is this possible, since I am not too familiar with Javascript. let me know is there a way to fix my problem. Here is my problem:
What I have is a datalist and at each row it contain an UpdatePanel and inside the UpdatePanel there are a button, a slideShowExtender with related controls and a hiddenField. The hiddenField stored a second contextKey value. At page load time the default contextkey already assigned to the slideShowExtender. What I want to achieve is when user clicked the button the slideShowExtender will switch the Contextkey with the hiddenField value so that the SlideShowExtender will display a new set of images.
So far I can make everything work as I want with server side function, which executed when the button onclick. However this will generate a whole page post back, which I want to avoid. So I was thinking of using client side Javascript to do the contextkey assign and then update the updatePanel, but I am not too familiar with Javascript so I can't get it working :(
Here is my current code:
[Code]....
View 3 Replies
May 3, 2010
I use a slideshowextender and everything is correct, but now I want to add thumbnails. or someone know how to go to a specific images in the slides[]
View 1 Replies
Feb 20, 2011
I am using SlideShowExtender and I am using a Slideservice webservice located also in root folder. It works fine. My image folder is in ROOT FOLDER. But I have member webpage folders and a general web pages folder. Now, when I click on webpages of any of these folders, the slideshowextender stops working because it looks for my IMAGE folder in those Webpage Folders. I know this happens because I can see it trying to download the image from that URL which DOESNT EXIST(looking for my image folder in webpage folders).
How do I make a relative URL for the images so that the slideshowextender still POINTS to the ROOT FOLDER of images and displays images at all times.
I cannot make the slideshowextender work when I am logged into the system.
View 4 Replies
May 7, 2010
I am having problem Using AJAX SlideShowExtender Control to retrieve image from Databases with querystring which passes query to an ImageHandler.
all my images to display are stored in database and I can retrieve them from Database using Gridview and so on. but using AJAX SlideShowExtender Control to retrieve image from Databases is a problem.
for example this code in code behind;
[Code]....
The Bold part of the above code is the problem...
[Code]....
Actually this should pass the query to the ImageHandler.ashx class created in a folder Handlers in my Project.
the other two ...
[Code]....
slides shows perfectly because the Images are stored in the Filepath.
but I don't want to be storing my Images in a folder in my website but in database.
how to use AJAX SlideShowExtender Control to retrieve image from Databases?
whereby a querystring is passed to the Imagehandler that retrives image from database and resize them?
View 1 Replies
Nov 29, 2010
How to display images stored in SQL Server DB using SlideShowExtender
Heres my my Web Page:
[Code]....
View 2 Replies
Dec 13, 2010
I am having trouble with my .asmx. I keep getting the error:
Sys.Net.WebServiceFailedException: The server method 'GetPhotos' failed with the following error: System.Data.SqlClient.SqlException-- The parameterized query '(@ImageAlbumGUID nvarchar(100))SELECT * FROM [Image] WHERE [Image' expects the parameter '@ImageAlbumGUID',
which was not supplied
I have my .asmx set up to display images if there is an album created from the db. If there is not an album created I would like to use a default picture. I tried setting the Image Url of the asp:Image to the image I want, but regardless I get this error.
<%@ WebService Language="VB" %>
Imports System.Web
Imports System.Web.Services
[code]...
View 1 Replies
Mar 27, 2010
I want to animating the image as show slide after slide by Slideshowextender , how I can make that
View 2 Replies
Sep 24, 2012
I am using ajax slide show extender
i want to avoid previous button click When it display the fist image
is it possible in ajax slide show extender?
View 1 Replies
Sep 3, 2010
I put a SliderShowExtender and i created a web service with a function that return AjaxControlToolkit.Slide(), but when a run the project give me the error:
Microsoft JScript runtime error: Sys.Net.WebServiceFailedException: The server method 'returnLogo' failed with the following error: <html>
<head>
<title>Unknown web method 'returnLogo'.<br>Parameter name: methodName</title>
<style>
View 2 Replies
May 16, 2010
have embedded a TreeView inside an Update Panel, PopulateOnDemand in use.When a top level node is expanded everything is fine - the level 1 (zero base) nodes are populated.When on of these lower level nodes is expanded the tree Collapse
View 2 Replies
Mar 24, 2011
I have a javascript function that is called on tab change of a tab container.From that javascript function, I call a simple page method.But though the page method does everything correctly, a failure is reported.Here is my code:
[Code]...
View 9 Replies
Jan 24, 2016
Is it mandatory to pass the Success and Failure method names as parameters while calling server side methods using PageMethods in client script.
I referred to article [URL] ....
View 1 Replies
Aug 26, 2010
I have an application that has JS calling ASMX files to do asyncronous requests, using ASP.NET AJAX.
The problem is that I use always the same "onError" function, and now I don't know how to identify the method that rised the error, and it is giving me a lot of problems to debug errors. The parameter "data" of the onError method does not give enough information, for
example:
en System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
en System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
en System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
en System.Web.Script.Serialization.ObjectConverter.ConvertObjectToType(Object o, Type type, JavaScriptSerializer serializer)
en System.Web.Script.Services.WebServiceMethodData.StrongTypeParameters(IDictionary`2 rawParams)
en System.Web.Script.Services.WebServiceMethodData.CallMethodFromRawParams(Object target, IDictionary`2 parameters)
en System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData, IDictionary`2 rawParams)
en System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)
Is there any way to know the webmethod that raised the error?
View 1 Replies
Apr 15, 2010
'm using the AutoCompleteExtender from the AJAX control toolkit on my aspx page - I have it wired up to a WCF service that is returning a string array and everything works happily.
If I change my service definition to include a demand for the caller to be authenticated, like so:
<OperationContract(), PrincipalPermission(SecurityAction.Demand, Authenticated:=True)> _Public Function GetLookupValues(ByVal prefixText As String, ByVal count As Integer, ByVal contextKey As String) As String()
Then the autocomplete extender stops working, and I get an authentication error in the service. The service is set up to use ASPNetCompatibility mode, and I was hoping that the extender would pass the authentication credentials for my logged in user - does anyone know how to make this work?
View 2 Replies