Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > problem with web service call from Ajax in Web Application

Reply
Thread Tools

problem with web service call from Ajax in Web Application

 
 
Lloyd Sheen
Guest
Posts: n/a
 
      11-18-2007
I have just completed (almost) an exercise to convert a web site to a web
app (acedemic reasons - just to see the differences).

A few bumps on the road such as copying class files to the new solution and
wondering for a while why the classes did not show up. It was because the
properties for the class file were "content" rather than "compile". Also
copied all my images to a newly created image folder outside the IDE. There
is no context menu item to refresh a folder in the Web App so it was out of
the car and back in to fix that.

One problem remains. I have Javascript code to log some information. In
the Web site code it works great. You have to add the
<System.Web.Script.Services.ScriptService()> _ (using VB) attribute to the
class file for the web service and it then works. I copied the same code to
the Web App and when I do the Javascript call it fails saying it cannot find
the Web Service.

Any ideas??

I have not posted code until someone lets me know what parts of the code are
needed for helping.

http://www.asp.net/learn/ajax-videos/video-82.aspx

This is where I got original code to convert web service to be used from
AJAX.

Lloyd Sheen

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Consuming Web Service from WIndows application when WebService is using Custom Service Account ( Create an Application Pool with a Custom Identity) DNB ASP .Net Security 1 01-22-2008 09:08 PM
Error Consuming Web Service from WIndows application when WebService is using Custom Service Account ( Create an Application Pool with a Custom Identity) DNB ASP .Net Web Services 1 01-20-2008 01:47 PM
Converting Web Site to Web Application (AJAX web service goes missing) Lloyd Sheen ASP .Net 1 11-15-2007 05:46 PM
'web service call failed: 500' using ajax hovermenu and web service Not Me ASP .Net 1 06-05-2007 03:09 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57