Saturday, October 1, 2011

Workflow validation error in AX 2009: The request failed with HTTP status 405: Method Not Allowed.

When you try to validate the Workflow URL, you might get an error saying "The request failed with HTTP status 405: Method Not Allowed."

To resolve this error , there are two ways :

If your system configuration is

1. Windows 2008 R2 64 bit.

2. SQL Server 2008
3. IIS 7

To resolve this error, the simple solution would be to set your IIS application Pool’s 32bit property to true
1. IIS –>Application pool of WF–> rightclick advanced settings and change 32 bit to TRUE.
2. Reset IIS.

If the above resolution doesn't work then follow the following steps.

This can occur because of the conflict in the Windows between the .NET framework 2.0 and .NET framework 4.0.

So, the following steps might resolve the issue

1. Deleted the application(MicrosoftDynamicsAXWorkflow50) from the Workflow website in IIS
2. Right click on the same workflow site and click on  “ Add a new Virtual Directory” with the same name of the deleted application(MicrosoftDynamicsAXWorkflow50).
3. In the physical path of the virtual directory, Point to the installed workfLow folder (most probably it will be in “C:Program FilesMicrosoft Dynamics AX50Workflow“). This folder contains the web services of AX workflow.
4. convert the “Virtual Directory” to “Application” by right-clicking that directory and clicking “Convert to Application”.

5. Go to permissions of that application,  by clicking ”Authentication” and ensure that "Anonymous" and “Windows Authentication” is enabled and any other things are disabled.
6. Go to the “Handler Mapping” of the Workflow Application. Select “WebServiceHandlerFactory-ISAPI-2.0″ and then click “Edit”. Please check whether the path is pointing to the .NET framework version 2.0 32-bit.  Point to the “aspnet_isapi.dll” file in the Framework folder.
7. Reset IIS and validate the URL again.
This resolves your issue and thus the URL is validated.

Happy Axing...........

No comments: