I've been trying to solve this and i just cannot find the solution. The service is a WCF Service - .svc if that effects anything? There is definitely no authentication on the application. It's off in web.config.
I have tried everything i can find - including reinstalling IIS. After doing that i get a new error message which is essentially the content of my Service.svc file: <%@ ServiceHost Language="C#" Debug="true" Service="Service" CodeBehind="~/App_Code/Service.cs" %> I'm out of my depth here - i have no idea what is going on! On Mar 4, 5:33 pm, Joseph Le Brech <jlebr...@hotmail.com> wrote: > can you test your webservice? > > Put a breakpoint to see what it is inserting into the SOAP object. > > That's one thing i do not like about the asp.net service thing is their > insistance on wrapping json inside a SOAP object, it's like sticking binary > inside XML. > > > > > Date: Wed, 4 Mar 2009 09:13:02 -0800 > > Subject: [jQuery] Re: Ajax Dot Net Plugin > > From: cakeordeat...@gmail.com > > To: jquery-en@googlegroups.com > > > I'm afraid i don't have the JSON handy. Being new to this i'm not sure > > how to get to that layer yet! > > > Anyway when i do alert(x.responseText) > > > I get: > > > <h2> <i>The resource cannot be found.</i> </h2></span> > > > [HttpException]: The file '/service.svc/helloworld/CMSLogin.aspx' does > > not exist. > > > at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath > > virtualPath) > > > (this is the most pertinent part and a larger error that i don't want > > to clog the thread with) > > > Obviously /service.svc/helloworld is what should get sent however i > > don't understand how my CMSLogin.aspx page has gotten added on there! > > Dot net forms authentication perhaps? Though i'm not redirecting > > anything at this point... > > > Here's the javascript function again: > > // Hello World > > $.ajaxDotNet("/Service.svc/HelloWorld", { > > verb: "GET", > > success: function(obj) { > > obj = obj.d; > > alert('Hello World'); > > $(".HelloWorld").text(obj); > > }, > > error: function(x, y, z) { > > alert(x.responseText); > > alert(y.responseText); > > alert(z.responseText); > > } > > }); > > > Additionally y.responseText and z.responseText come out as undefined. > > > Again, i'm miffed! > > > On Mar 4, 4:57 pm, Joseph Le Brech <jlebr...@hotmail.com> wrote: > > > Do you have the json handy?? > > > >http://www.jsonlint.com/ > > > > Paste the output in here to see if its valid json? > > > > is it generated from a asp service? > > > > > Date: Wed, 4 Mar 2009 08:24:52 -0800 > > > > Subject: [jQuery] Re: Ajax Dot Net Plugin > > > > From: morni...@gmail.com > > > > To: jquery-en@googlegroups.com > > > > > he's got the error, which is: > > > > > SyntaxError: JSON.parse > > > > > and sorry about my last post > > > > > alert(x.responseText) will show the error text (as will Firebug as > > > > mentioned about) > > > > > anyways, the error your getting is that it seems that your ASP.NET > > > > code can't parse the results to JSON > > > > > On Mar 4, 11:02 am, Joseph Le Brech <jlebr...@hotmail.com> wrote: > > > > > get firebug and put a breakpoint on for the line for error. > > > > > > > Date: Wed, 4 Mar 2009 07:58:45 -0800 > > > > > > Subject: [jQuery] Re: Ajax Dot Net Plugin > > > > > > From: cakeordeat...@gmail.com > > > > > > To: jquery-en@googlegroups.com > > > > > > > P.S. > > > > > > > alert(y) gives Not Found > > > > > > alert(z) gives SyntaxError: JSON.parse > > > > > > > Where do i find out what x y and z are? > > > > > > > Thanks! > > > > > > > On Mar 4, 3:52 pm, Jon <cakeordeat...@gmail.com> wrote: > > > > > > > That's great! Thanks! > > > > > > > > Here's the error: > > > > > > > [object XMLHttpRequest] > > > > > > > > What does that mean. I'm confused... I thought the plugin worked > > > > > > > via > > > > > > > JSON... > > > > > > > > On Mar 4, 3:41 pm, MorningZ <morni...@gmail.com> wrote: > > > > > > > > > Show what the error is > > > > > > > > > error: function(x, y, z) { > > > > > > > > alert(x); > > > > > > > > > } > > > > > > > > > should show you what the error actually is instead of guessing > > > > > > > > > On Mar 4, 10:10 am, Jon <cakeordeat...@gmail.com> wrote: > > > > > > > > > > I'm trying to get the ajax dot net plugin working and failing > > > > > > > > > miserably. > > > > > > > > > > I've added the service - both manually and by dragging the > > > > > > > > > example > > > > > > > > > files into my solution. > > > > > > > > > I've copied the hello world function from the example > > > > > > > > > solution and > > > > > > > > > added it to the service and the jquery for it. > > > > > > > > > I've copied the system.serviceModel into my web.config. > > > > > > > > > Again, i've > > > > > > > > > tried using the default one created when adding the service > > > > > > > > > to the > > > > > > > > > solution and i've copied it across from the example solution. > > > > > > > > > > But no matter what i do i can't get the ajax to work. > > > > > > > > > > // Hello World > > > > > > > > > $.ajaxDotNet(url + "HelloWorld", { > > > > > > > > > verb: "GET", > > > > > > > > > success: function(obj) { > > > > > > > > > obj = obj.d; > > > > > > > > > alert('Hello World'); > > > > > > > > > $(".HelloWorld").text(obj); > > > > > > > > > }, > > > > > > > > > error: function() { > > > > > > > > > alert('Hello Error'); > > > > > > > > > $(".HelloWorld").text("Error"); > > > > > > > > > } > > > > > > > > > }); > > > > > > > > > > Every time i run it i just get the Hello Error alert. > > > > > > > > > > Does anyone know if i'm missing something essential? Am i > > > > > > > > > making a > > > > > > > > > stupid error? > > > > > > > > > > Please help, i'm dying to get this plugin working! And if i > > > > > > > > > can't get > > > > > > > > > this working does anyone else has any experience with JQuery > > > > > > > > > and Dot > > > > > > > > > Net and might be able to point me to a solution? > > > > > > _________________________________________________________________ > > > > > All your Twitter and other social updates in one > > > > > placehttp://clk.atdmt.com/UKM/go/137984870/direct/01/ > > > > _________________________________________________________________ > > > 25GB of FREE Online Storage – Find out > > > morehttp://clk.atdmt.com/UKM/go/134665320/direct/01/ > > _________________________________________________________________ > All your Twitter and other social updates in one > placehttp://clk.atdmt.com/UKM/go/137984870/direct/01/