not able to connect to WS

wacky_lokpo

New Member
i am trying to learn how to work with ws ajax and stuffand i have a problem which i dont know how to handle i have an html page with script tag containing:\[quote\] $(document).ready(function () { $('#buttonSays').click(function () { $('div').load('WebService1.asmx/HelloWorld'); });\[/quote\]a WS in the same solution:\[code\][WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] [System.Web.Script.Services.ScriptService] public class WebService1 : System.Web.Services.WebService { private static int _count=0; [WebMethod] public string HelloWorld() { _count++; return "Hello World" + _count.ToString(CultureInfo.InvariantCulture); }\[/code\]when running the application i get in chrome debugger the following error:\[quote\] Failed to load resource: the server responded with a status of 500 (Internal Server Error)\[/quote\]and i dont know what to do .. everything looks fine, except:when running an app i am used to see in the try an icon that tells me that visual studio has opened a port for this project/website and now i dont see it, i see something else, an IIS EXPRESS icon, right click on it shows the project which are now running.. is it ok?another question regarding web servers is how can i debug them..? like hit a breakpoint from the code and run into the WS it self, is it even possible? after some reading i saw something about Trace.axd.. this is the way to debug them or the application?i want to be able to do this by myself.. so for such or other error i'll know what to do. or at least where to begin.Thanks a lot.
 
Back
Top