2

I have implemented ajax autocompleteExtender and it works well until i included asp.net url router.

this is ajax control

<cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="TextBox1" MinimumPrefixLength="1"  ServiceMethod="SearchText" ServicePath="~/WebService1.asmx"></cc1:AutoCompleteExtender>

when i included this line in global.asax.cs ,i am unable to retrieve methods in WebService1.asmx file

  routes.MapPageRoute("searchpage", "{categoryName}/{area}", "~/search.aspx");

how the servicepath should be? it is working in localhost but not in live environment.

thank you

As k
  • 329
  • 1
  • 6
  • 20

1 Answers1

2

Solution : include this in web.config

<system.webServer>  
  <handlers>     
      <remove name="ExtensionlessUrl-Integrated-4.0"/>  
      <remove name=" ExtensionlessUrl-ISAPI-4.0_32bit "/>  
   </handlers>
</system.webServer>

reference links :

explanation link

main solution to refer

thank you

Community
  • 1
  • 1
As k
  • 329
  • 1
  • 6
  • 20