FIX: Cannot Bind to WSC That Is Written in XML from HTTP Server

This article was previously published under Q272501
This article has been archived. It is offered "as is" and will no longer be updated.
When you bind to a Windows Script Components (.wsc) file that is written in Extensible Markup Language (XML) and that resides in an HTTP server, you may receive error code 800c0010H.
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack
The English version of this fix should have the following file attributes or later:
   Date       Time         Version      Size     File name   -------------------------------------------------------   8/28/2000  4:57:14 PM   151,601  scrobj.dll				

Microsoft has confirmed that this is a problem in Microsoft Windows 2000. This problem was first corrected in Windows 2000 Service Pack 2.

Steps to Reproduce Behavior

  1. Create a new file called Sample.wsc and paste the following code:
    <?xml version="1.0"?><component><?component error="true" debug="true"?><registration	description="sample2"	progid="sample2.WSC"	version="1.00"	classid="{7f8675d0-9161-11d3-bfc3-00c04f8efafa}"></registration><public>	<property name="state">		<get/>		<put/>	</property>	<property name="Frame">		<get/>		<put/>	</property>	<method name="DecrementState">	</method></public><script language="JScript"><![CDATA[var description = new sample2;function sample2(){	this.get_state = get_state;	this.put_state = put_state;	this.get_Frame = get_Frame;	this.put_Frame = put_Frame;	this.DecrementState = DecrementState;}var state = 7;var Frame = "null";function get_state(){	return state;}function put_state(newValue){	state = newValue;}function get_Frame(){	return Frame;}function put_Frame(newValue){	Frame = newValue;}function DecrementState(){	return "Temporary Value";}]] ></script></component>					
  2. Open this file on a Web server.
  3. Create a new file called Test.vbs and paste the following code:
    set x = GetObject("script:http://YourServerName/sample.wsc")print x.statex.state = 43print x.state					
  4. Adjust the URL to point to your server, and then run Test.vbs.


For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below to view the article in the Microsoft Knowledge Base:
249149 Installing Microsoft Windows 2000 and Windows 2000 Hotfixes

Article ID: 272501 - Last Review: 10/21/2013 01:00:34 - Revision: 3.2

Microsoft Windows 2000 Server, Microsoft Windows 2000 Advanced Server, Microsoft Windows 2000 Professional Edition

  • kbnosurvey kbarchive kbhotfixserver kbqfe kbbug kbfix kbwin2000presp2fix KB272501