Category Archives: Workflow

Unable to validate the AX 2009 Workflow Webservice URL on a Windows Server 2008 R2 x64-Error :The request failed with HTTP status 405: Method Not Allowed.

I have recently successfully installed Dynamics Ax 2009 Workflow.this is running on the following System configuration:
1. Windows 2008 R2 64 bit.
2. SQL Server 2008
3. IIS 7.5

However when i tried to Validate the workflow URL (e.g. http://jai-mdas-05/MicrosoftDynamicsAXWorkflow50/AxWorkItem.asmx in the AX Client (AX 2009 Client -> Administration -> Setup -> Workflow infrastructure configuration wizard) I got the following error:

The request failed with HTTP status 405: Method Not Allowed.

However when we browse one of the web service pages, AxWorkItem.asmx, we get the following error:

"HTTP Error 404.17 – Not Found. The requested content appears to be script and will not be served by the static file handler"

i have done lots of Google searches to find out this error resolution and got to know that it is usually occurs when you have the 4.0 .NET framework installed on the machine.  The workflow web services are built with version 2.0 of .NET.  IIS has associated the workflow web service files with the 4.0 file handler and the services are not functional with that handler.

This indicates we have an handler issue and it cannot find the correct handler to process the .asmx file. So looking at the handler mappings for the MicrosoftDynamicsAXWorkflow50 application, identified that there was only one *.asmx handler and this was mapped to ASP.NET 4.0 (C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll)





To solve the issue, I basically have gone through following steps:

1. Deleted MicrosoftDynamicsAXWorkflow50 Application directory in IIS, under the default web site.

2.create a “Virtual Directory” to the same site and named the new virtual directory with the same name of the deleted application.

3.set the  physical path  as “D:\Program Files\Microsoft Dynamics AX\50\Workflow“of the newly created virtual directory named MicrosoftDynamicsAXWorkflow50 .This folder contains the web services of AX workflow.i have done dynamics ax installation in D Drive.most probably it will be in “C:Program FilesMicrosoft Dynamics AX50Workflow“.

4.Now select the virtual directory named MicrosoftDynamicsAXWorkflow50 and  by right-clicking that directory and clicking “Convert to Application”

5.then select the application and double click ”Authentication” and I insured that “ASP.NET Imporsenation” ,“Windows Authentication”and “Anonymous Authentication” are enabled and remains should be disabled.

6.Now went to the “Handler Mapping” of the Workflow Application. I selected “WebServiceHandlerFactory-ISAPI-2.0″ and then clicked “Edit”. I insured that the “Executable” path is pointing to the %windir%\Microsoft.NET\Framework64\v2.0.507\aspnet_isapi.dll.

Note:by default  the “Executable” path is pointing to the %windir%\Microsoft.NET\Framework\v2.0.507\aspnet_isapi.dll.

7.“Basic Authentication” should be disabled,otherwise you may face below error





Smile Happy Daxing

Leave a comment

Posted by on October 22, 2012 in Microsoft Dynamics AX, Workflow


Tags: ,