I am trying to get a web site (.NET 2.0) I inherited to run in IIS7. I am stuck trying to get an Ajax call to work. It is supposed to do an UPDATE in the database but it doesnt. It runs fine in IIS6. In IIS7 it doesnt throw an error to the screen, it just doesnt update the database. I believe that my problem is that I dont have a Handler set up properly to handle the Ajax call.
<Ajax.AjaxMethod()> Function MyDbUpdate(blah, blah, blah, this works fine on existing site)
blah, blah, works fine
I have created a few handlers and turned off/on the Inherited handlers, but I am really shootin in the dark. The two Inherited handlers handle .ashx files and have
1. a type of System.Web.UI.SimpleHandlerFactory and
2. an Executable of %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
When I create a "Managed Handler" using the gui there is nothing that appears more Ajax related than the above items in the Type drop down. Maybe I need to install something on the server in order to get the right "Type" to appear in that drop down(?)
One of the handlers that I created, was a "Script Map" and it wrote a <system.webServer> node with children nodes in my web site web.config, but the Ajax call still didnt work. In that handler I tried to make it use the Ajax dll (Ajax.dll) that is in the web site directory structure, so the node in the web config looked like this.
<add name="AJAX.NET" path="*.ashx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="D:\PriorityPost\bin\Ajax.dll" resourceType="Unspecified" />
How can I get the Ajax call to work? Thanks.