Webchat Not Working with Microsoft URL Scan in IIS

Expand / Collapse
 

Webchat Not Working with Microsoft URL Scan in IIS


Article ID: 51447 - Last Review: March 26, 2012

PROBLEM

When using MCC Web Chat the web chat is created when the customer submits the chat form page. The chat is offered to the agent however messages between the customer and agent are not delivered.

SYMPTOMS

The Chat Form ASP page properly generates the chat window and connects to the server. The following message appears as soon as the chat connects to the server:

java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost/webchat/cyberchat.dll?Update?5.ch0000000019&99919&1332175182278&en-US 



CAUSE

When using Microsoft URL Scan (http://www.iis.net/download/urlscan) ISAPI filter for IIS, by default using a dot within a path is disabled. The internal web chat call to the CyberChat.dll to update messages being sent and received includes a unique chat identifier with a dot in the path (i.e. 5.ch0000000019) which is being blocked by URL Scan.

The URL Scan logs will show a blocked request due to a dot contained within the path (logs are found here C:\Windows\System32\inetsrv\urlscan\logs):
#Fields: Date Time c-ip s-siteid cs-method cs-uri x-action x-reason x-context cs-data x-control
2012-03-19 12:40:37 ::1 1 GET /WebChat/172.16.4.125/webchat/ Rejected URL contains dot in path URL - -
2012-03-19 12:40:58 ::1 1 GET /WebChat/172.16.4.125/webchat/ Rejected URL contains dot in path URL - -



RESOLUTION

In order to allow the web chat applet to make the update call to the CyberChat.dll the following configuration option must be changed in URL Scan:

AllowDotInPath=0        ; If 1, allow dots that are not file
                               ; extensions. The default is 0. Note that
                               ; setting this property to 1 will make checks
                               ; based on extensions unreliable and is
                               ; therefore not recommended other than for
                               ; testing.

This configuration file can be found here:
C:\Windows\System32\inetsrv\urlscan\urlscan.ini



APPLIES TO

Webchat 

Keywords: IIS Webchat URL Scan Java ASP



Rate this Article:
     
Tags:

Add Your Comments


Name: *
Email Address:
Web Address:
Verification Code:
*
 

Details
Last Modified:Monday, March 26, 2012
Last Modified By: kmiddlemiss
Type: FIX
Article not rated yet.
Article has been viewed 6,587 times.
Options