Login

Invoking WebService operations in IIS5 causes an HttpException

Versions: n/a, FAQ number: 217, Old FAQ number: 14162

The combination of IIS5 and the wildcard Application Mapping to aspnet_isapi.dll required by the FriendlyUrl function in EPiServer CMS 5 causes problems when calling WebService methods.

The exception thrown states that:

"The HTTP verb POST used to access path '/webservices/datafactoryservice.asmx/MethodName' is not allowed"

The reason for this is that the wildcard mapping somehow interferes with IIS5's ability to separate the HttpRequest.Path string into its FilePath and PathInfo parts.

Note that this is not an issue in IIS6, so EPiServer CMS installations running on Windows Server 2003 machines are not affected by this problem.

To work around this problem we recommend that you upgrade to EPiServer CMS 5.1 SP1 or later and activate the IIS5WebServicePostModule as per the instructions below.

How to activate the IIS5WebServicePostModule

  1. Edit your web.config file and locate the <httpModules> section.
  2. Remove the commenting for IIS5WebServicePostModule to make the <httpModules> look something like this:

<

httpModules>

<!--

<add name="BasicAuthentication" type="EPiServer.Security.BasicAuthentication, EPiServer" />-->

<

add name="Initializer" type="EPiServer.Scheduler.Initializer, EPiServer.Scheduler" />

<

add name="WorkflowRuntime" type="EPiServer.WorkflowFoundation.WorkflowSystem, EPiServer.WorkflowFoundation" />

<

add name="UrlRewriteModule" type="EPiServer.Web.UrlRewriteModule, EPiServer" />

<!--

<add name="EventSubscriberHostModule" type="EPiServer.EventSubscriberHostModule, EPiServer" />-->

<

add name="IIS5WebServicePostModule" type="EPiServer.Web.IIS5WebServicePostModule, EPiServer" />

</

httpModules>
EPiTrace logger