Microsoft Dynamics 365 Blog

We came across a recent issue where we have a new Windows Server 2008 R2 with nothing else installed other then the AX 2009 Workflow extensions and the server has been patched with the latest windows update patches that includes 4.0. The application pool of the workflow web service was already modified as per, however when you tried to validate the workflow infrastructure configuration wizard, you get the same error:

The request failed with HTTP status 405: Method Not Allowed

To troubleshoot this, we verified that the workflow folder had the appropriate NTFS permissions, and that the application pool runs as .net framework 2.0 classic and not 4.0. 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.

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)

We tried re-registering 2.0 using aspnet_regiis.exe but this did not help. However just deleting the virtual application and recreating it again manually using IIS Manager, recreated it with all the default required 2.0 handlers and this resolved the issue.

Steps we took to resolve:

(1) Deleted MicrosoftDynamicsAXWorkflow50 virtual directory in IIS, under the default web site

(2) Created a new Application called MicrosoftDynamicsAXWorkflow50 and set the application pool to MicrosoftDynamicsAXWorkflow50 and physical path to C:\Program Files\Microsoft Dynamics AX\50\Workflow

(3) Ensured that the application pool settings was set as per

(4) In the Authentication settings for MicrosoftDynamicsAXWorkflow50, ensure Anonymous is disabled and only ASP.NET Impersonation and WOndows Authentication are enabled

 (5) In the Handler mappings for MicrosoftDynamicsAXWorkflow50, ensure there are 3 entries named WebServiceHandlerFactory-ISAPI-2.0_32bit… mapped to the *.asmx path.

–author: Anup Shah
–editor: Anup Shah
–date: 07/July/2010

We're always looking for feedback and would like to hear from you. Please head to the Dynamics 365 Community to start a discussion, ask questions, and tell us what you think!