Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. System.IndexOutOfRangeException: Index was outside the bounds of the array.
  2. at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
  3. at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
  4. at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
  5.  
  6. [WebMethod]
  7. [ScriptMethod(UseHttpGet = true)]
  8. public string getBlah(int blah)
  9. {
  10. return "blah";
  11. }
  12.  
  13. using System;
  14. using System.Collections.Generic;
  15. using System.Data;
  16. using System.Linq;
  17. using System.Web;
  18. using System.Web.Script.Serialization;
  19. using System.Web.Script.Services;
  20. using System.Web.Services;
  21.  
  22.  
  23. namespace WebApplication2
  24. {
  25. /// <summary>
  26. /// Summary description for WebService1
  27. /// </summary>
  28. [WebService(Namespace = "http://www.mysite.com/")]
  29. [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  30. [System.ComponentModel.ToolboxItem(false)]
  31. [System.Web.Script.Services.ScriptService]
  32. public class WebService1 : System.Web.Services.WebService
  33. {
  34.  
  35. [WebMethod]
  36. [ScriptMethod(UseHttpGet = true)]
  37. public string AMethod(int page)
  38. {
  39. return "blah";
  40. }
  41.  
  42. [WebMethod]
  43. [ScriptMethod(UseHttpGet = true)]
  44. public void Owners(string searchTerm, int pageSize, int page)
  45. {
  46. string retJson = "";
  47.  
  48. Context.Response.Write(retJson);
  49. }
  50.  
  51. [WebMethod]
  52. [ScriptMethod(UseHttpGet = true)]
  53. public string Results(List<string> counties, List<string> field2, List<string> field3, string owners, int pageSize, int page)
  54. {
  55. return "["test":"hi","test2":"bye"]";
  56. }
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement