Hi,
I am using the LoadOnDemand feature of the RadComboBox. It has been working on the VS development server and IIS6 but is not working after migrating to IIS7 in Classic mode.
When I type into the combo box a Javascript alert pops up with the message "The server method "LoadDropDown" failed".
My combo box is created like this:
The application is running in a pool using the classic mode, not Integrated pipeline mode.
In IIS7, the handler mappings have *.asmx paths mapped to the handler IsapiModule.
According to some stuff on the web this could be a permissions error but I have tried giving full permissions to Network Service and it does not work.
All other AJAX requests are working fine.
In the web.config I have:
My asmx file's code looks like this:
Hope you can help
I am using the LoadOnDemand feature of the RadComboBox. It has been working on the VS development server and IIS6 but is not working after migrating to IIS7 in Classic mode.
When I type into the combo box a Javascript alert pops up with the message "The server method "LoadDropDown" failed".
My combo box is created like this:
| var combobox = new RadComboBox |
| { |
| WebServiceSettings = { Path = "~/Services/MyWebService.asmx", Method = "LoadDropDown" }, |
| EnableLoadOnDemand = true, |
| MarkFirstMatch = true, |
| AllowCustomText = true, |
| ShowDropDownOnTextboxClick = false, |
| ID = "rcb", |
| MaxLength = 255, |
| EnableEmbeddedSkins = false |
| }; |
The application is running in a pool using the classic mode, not Integrated pipeline mode.
In IIS7, the handler mappings have *.asmx paths mapped to the handler IsapiModule.
According to some stuff on the web this could be a permissions error but I have tried giving full permissions to Network Service and it does not work.
All other AJAX requests are working fine.
In the web.config I have:
| <httpHandlers> |
| <remove path="*.asmx" verb="*" /> |
| <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> |
| etc... |
My asmx file's code looks like this:
| namespace MyWebsite.Services |
| { |
| [WebService] |
| [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] |
| [ToolboxItem(false)] |
| [ScriptService] |
| public class MyWebService : WebService |
| { |
| [WebMethod] |
| public RadComboBoxItemData[] LoadDropDown(object context) |
| { |
| var currentData = (IDictionary<string, object>)context; |
| var currentText = (string)currentData["Text"]; |
| var result = new List<RadComboBoxItemData>(); |
| etc. |
| etc. |
| return result.ToArray(); |
| } |
| } |
| } |
Hope you can help