How to Resolve a 405 Error When Attempting to Upload (PUT) Schema or Data
Who is this article for?Ideagen Smartforms users configuring the system.
Understanding of Windows server is required.
If a data adapter receives a 405 "Method not Allowed" response from the Data Replication Server while attepting to upload schema or data, it is possible that the WebDAV module is installed in IIS and needs to be disabled for the Data Replication Server web app. To disable the WebDAVModule, edit the web.config file.
This requires a slight change to the web.config file of the Data Replication Server web app. By default, the location is:
c:\inetpub\wwwroot\DRS\web.config.
Edit the web.config file by editing the <system.webServer> section.
The eventual <system.webServer> section might look something like this:
<system.webServer>
<httpErrors existingResponse="PassThrough" errorMode="Detailed" />
<handlers>
<remove name="WebDAV"/>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<remove name="OPTIONSVerbHandler" />
<remove name="TRACEVerbHandler" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
<modules>
<remove name="WebDAVModule"/>
</modules>
</system.webServer>
Note: If the Windows feature "WebDAV" is turned on, please see How to Resolve a 403 Error When Accessing the Data Replication Server Web App
Restart the Data Replication Server web application and attempt to upload schema or data again and this error should no longer be encountered.