1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Remote Scripting Error

Discussion in 'C#' started by badari.net, Dec 29, 2011.

  1. #1
    Hi All,

    We are getting the remote scripting error “REMOTE SCRIPTING ERROR: Page Invoked does not support Remote Scripting.” in our application. So we have followed the below procedure to find whether issue from remote scripting or application end.

    1. Created an Active Server Pages (ASP) page “Sample_server.asp” in our Website with the following code:

    <!--#include file="_ScriptLibrary/rs.asp"-->
    <% RSDispatch %>
    <SCRIPT Language=JavaScript RUNAT=SERVER>

    var public_description = new myFunction();

    function myFunction()
    Document.Write("Test Function");


    2. Created an HTML page in our Website “Sample_client.htm” with the following code:

    <SCRIPT Language="JavaScript" src="_ScriptLibrary/rs.htm"></SCRIPT>
    <h2>Sample Remote Scripting Client</h2>

    <SCRIPT LANGUAGE="javascript">

    var serverURL = "sample_Server.asp";
    function myTest()
    var RSObj = RSExecute(serverURL, "myFunction");

    if (RSObj.status != 0) {
    WriteError(RSObj.data); }

    function WriteError(strHTML) {
    var w = window.open("","error_window","width=500,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no")
    w.document.write("<H2>Remote Scripting Call Returned the following:</H2>");
    w.document.write("<TABLE border=1 cellpadding=10 bgcolor=#dddddd><TR><TD>");
    w.document.write("<FORM><INPUT type=button value=\" OK \" onclick=self.close()></FORM>");
    <input type=button name=rstest value=" Go " onclick="myTest()">

    3. Opened Sample_client.htm from browser (IIS). We are getting the error as mentioned in the top.

    Note: _ScriptLibrary folder exists in wwwroot folder.

    Please let me know if you have come across the same issue and got any resolution for it.
    Last edited: Dec 29, 2011
    badari.net, Dec 29, 2011 IP