Article ID: 272501
Article Last Modified on 2/23/2007
APPLIES TO
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional Edition
This article was previously published under Q272501
SYMPTOMS
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.
RESOLUTION
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 the Microsoft 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 1.1.0.5628 151,601 scrobj.dll
STATUS
Microsoft has confirmed that this is a problem in Microsoft Windows 2000. This problem was first corrected in Windows 2000 Service Pack 2.
MORE INFORMATION
Steps to Reproduce Behavior
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>
- Open this file on a Web server.
Create a new file called Test.vbs and paste the following code:
set x = GetObject("script:http://YourServerName/sample.wsc") print x.state x.state = 43 print x.state
- Adjust the URL to point to your server, and then run Test.vbs.
REFERENCES
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
Additional query words: 800c0010H
Keywords: kbhotfixserver kbqfe kbbug kbfix kbwin2000presp2fix KB272501