some WebMethods in aspx and some in asmx
-
Hi I'm using Asp.net 4 with url routing. I've got a WebmMethods.asmx file with some methods and another file - WebMethods.aspx with the same set of methods (ctrl+c, ctrl+v) and I call them from jQuery code with $.ajax (POST) function.. and there's this problem that just blows my mind.. on one page (default: http://localhost:3333/site/) calling methods from the aspx files throw 500 exception 'unknown method' while calling them from the asmx file works just fine. on another page (somePage: http://localhost:3333/site/somePage/) it goes the other way round: calling from asmx file throws the same exception and from aspx works. I use absolute paths - the files are found by the calls but methods not - when I used some other path I got 'resource not found exception' so what the hell? I've spent a few hours googling the problem but found nothing.. If anybody had similar problem or knows why it's like this PLEASE enlighten me :)
life is study!!!
-
Hi I'm using Asp.net 4 with url routing. I've got a WebmMethods.asmx file with some methods and another file - WebMethods.aspx with the same set of methods (ctrl+c, ctrl+v) and I call them from jQuery code with $.ajax (POST) function.. and there's this problem that just blows my mind.. on one page (default: http://localhost:3333/site/) calling methods from the aspx files throw 500 exception 'unknown method' while calling them from the asmx file works just fine. on another page (somePage: http://localhost:3333/site/somePage/) it goes the other way round: calling from asmx file throws the same exception and from aspx works. I use absolute paths - the files are found by the calls but methods not - when I used some other path I got 'resource not found exception' so what the hell? I've spent a few hours googling the problem but found nothing.. If anybody had similar problem or knows why it's like this PLEASE enlighten me :)
life is study!!!