Microsoft KB Archive/259389

= PRB: Remote Scripting Error If You Change Server Language to JScript =

Article ID: 259389

Article Last Modified on 7/27/2001

-

APPLIES TO


 * Microsoft Active Server Pages 4.0

-



This article was previously published under Q259389



SYMPTOMS
If you change the server-side script language from Microsoft VBScript to Microsoft JScript in a server Active Server Pages (ASP) page that is used for remote scripting, the following error message appears:

Remote Scripting Error

REMOTE SCRIPTING ERROR: Page invoked does not support remote scripting.



CAUSE
Within the server-side script page, a remote scripting function called RSDispatch is called. The error occurs because the public_description object, which is utilized by the RSDispatch function, has not been created.



RESOLUTION
To resolve the error, ensure that the public_description object is created before you call RSDispatch. You can accomplish this by simply making the call to RSDispatch as the last command on the page.

For example, change <%@ LANGUAGE=JScript%>

<% RSDispatch %>



function Description {        this.TestFunction = TestFunction; }   public_description = new Description;

function TestFunction {       return &quot;Hello world!&quot;; }  to: <%@ LANGUAGE=JScript%>



function Description {        this.TestFunction = TestFunction; }   public_description = new Description;

function TestFunction {       return &quot;Hello world!&quot;; }

RSDispatch; 



STATUS
This behavior is by design.

Keywords: kbscript kbprb kbremoteprog KB259389

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.