I followed this tutorial to the letter and can't get it to work.  Here's what I have:

Default.aspx:

Code


WebService.asmx.cs file:

C#
 using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace WebApplication1
{
	/// 
	/// Summary description for WebService
	/// 
	[WebService(Namespace = "http://tempuri.org/")]
	[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
	[System.ComponentModel.ToolboxItem(false)]
	// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
	[System.Web.Script.Services.ScriptService]
	public class WebService : System.Web.Services.WebService
	{

		[WebMethod]
		public string[] GetComponents(string prefixText, int count)
		{
			string[] result = new string[5];
			result[0] = "Hello";
			result[1] = "Hi";
			result[2] = "Greetings";
			result[3] = "Salutations";
			result[4] = "Bonjour";
			return result;
		}
	}
}


I also have a zip of the solution here: http://acm.uwec.edu/~benderrr/WebApplication1.zip

Edit:  I forgot to add that I am able to run the WebService by itself.  It returns the values from the function.  The function is never invoked from the aspx though.

Any help would be great, thanks!