Microsoft KB Archive/272501

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

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.



Steps to Reproduce Behavior
  Create a new file called Sample.wsc and paste the following code: 

<?component error=&quot;true&quot; debug=&quot;true&quot;?>



  

 <![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 = &quot;null&quot;;

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 &quot;Temporary Value&quot;; }

]] >

 Open this file on a Web server.</li>  Create a new file called Test.vbs and paste the following code: set x = GetObject(&quot;script:http://YourServerName/sample.wsc&quot;) print x.state x.state = 43 print x.state </li> Adjust the URL to point to your server, and then run Test.vbs.</li></ol>