PRB: Client-Side Recordset Fails When SSL Is Required

Article translations Article translations
Article ID: 236781 - View products that this article applies to.
This article was previously published under Q236781
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

SYMPTOMS

When you work with Active Server Pages (ASP) or HTML pages that use a client-side Recordset DTC in a Web site or a Web application with Secure Sockets Layer (SSL) enabled, your page may show up in the browser with no data in it.

CAUSE

This behavior occurs because the following statement in the Recordset.htm file is making an HTTP request instead of an HTTPS request to the server:
var strServer = 'http://' + document.domain;
				
When the Web server is configured to require SSL, requests using HTTP fail. Because the line of code above specifically states to use the HTTP protocol for RDS, the connection fails and no data is displayed.

RESOLUTION

If returning the RDS data via HTTP and not using SSL is acceptable, then you can remove the SSL requirement for RDS only. Use the following steps to do this:
  1. Open Microsoft Management Console (MMC).
  2. Expand the Web site, right-click the MSADC application, and select Properties.
  3. On the Directory Security tab, click Edit under the Secure Communications section.
  4. Clear the Require Secure Channel When Accessing This Resource option.
Another option is to use a server-side recordset DTC that does not use RDS. Data access will be performed on the server, and the resultig HTML can be sent to the browser via SSL.

If you require the use of RDS, and the RDS connection must be done via HTTPS, then you can optionally edit the Recordset.htm file and simply change the http to https as shown:
var strServer = 'https://' + document.domain;
				
NOTE: Modifications to the files in the _ScriptLibrary folder are unsupported. Updates from Microsoft for the _ScriptLibrary files may overwrite any customizations.

STATUS

This behavior is by design.

Properties

Article ID: 236781 - Last Review: October 21, 2013 - Revision: 1.1
APPLIES TO
  • Microsoft Visual InterDev 6.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbctrl kbprb KB236781

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com