Unanswered Objet not supported - rs.htm

  • Wednesday, May 30, 2012 2:45 AM
     
     

    I have a custom asp application which uses remote scripting with the files rs.htm/ rs.asp/ and other in scriptLibrary.

    I have created a .NET application and added the custom asp project in it. The project works fine when run locally on the azure emulator but the same application is deployed on Azure, it gives me a javascript error, saying object is not supported.

    is there any configurations that need to be set to allow remote scripting on azure platform or is it not supported at all?

    Please reply asap.


    M.O

All Replies

  • Wednesday, May 30, 2012 6:20 AM
    Moderator
     
     

    Hello,

    As far as i know, defaultly ASP is not install for Azure VM IIS, you need enable it manually or by startup task. Steve Marx has related blogs shows how to do it:
    http://blog.smarx.com/posts/introduction-to-windows-azure-startup-tasks

    Hope this helps.


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

  • Wednesday, May 30, 2012 3:27 PM
     
     

    Thanks.

    Enabling custom asp on azure is ok. But my asp application also contains remote scripting. Ani idea about this?


    M.O

  • Thursday, May 31, 2012 2:30 AM
     
     

    I think Remote scripting is support by Azure, Azure is just a cloud platform, and please make sure you have involve rs.htm to enable remote scripting.

  • Thursday, May 31, 2012 2:34 AM
     
     
    Can you please elaborate on this? I do have my rs.htm file....basically all my files used for remote scripting is in the folder ScriptLibrary under same folder as my project.

    M.O

  • Thursday, May 31, 2012 2:46 AM
     
     

    Just try it as normal way and test it in Azure emulator locally, if works OK then upload it on portal.

  • Thursday, May 31, 2012 2:49 AM
     
     

    Locally the project is working fine but once deployed on Azure, i get the error Object not supported.

    thanks


    M.O

  • Thursday, May 31, 2012 2:58 AM
     
     
    Do you have enable ASP for IIS as Arwind mention above? If so, can you share some details about the exception and how does the exception was thrown.
  • Thursday, May 31, 2012 3:14 AM
     
     

    Yes it is enabled and i am sure this is working as i do have other asp applications running fine on azure.

    I get the error when i click submit button on my login screen (code is below) after inserting a valid username and pwd.

    <html>
     <head>
      <title>Login Screen</title></head>
     <SCRIPT LANGUAGE="JavaScript" src="_ScriptLibrary/RS.HTM"></SCRIPT>
        <SCRIPT LANGUAGE="JavaScript">         RSEnableRemoteScripting();</SCRIPT>
     <script language="javascript">

     function LogOnUser() {
     //check if a valid user
         var ok = true
         var dbadm
         var str_err = "Please Enter"
         var lname = document.frmlogon.txt_lname.value
         var pwd = document.frmlogon.txt_pwd.value

         if (lname == "")
       {

       str_err = str_err + " UserID/Email"
       ok = false   
       }
      if (pwd == "")
      {
       str_err = str_err + "  Password"
       ok = false
       }

      if (ok)
      { 

      var co = RSExecute("allfunc.asp","findadmin",lname,pwd);

       var retval = co.return_value;
       //alert(retval)
       if (retval == '0') {
        alert("Your entry is invalid. Please enter a valid userid and password")    
        document.frmlogon.txt_pwd.value='';
        document.frmlogon.txt_pwd.focus();
        }
       else
       { document.frmlogon.action  = 'start.asp';
          document.frmlogon.submit();

       }
       }
      else
       alert(str_err)
     }


     </script>
     <body bgcolor="silver" onLoad="document.frmlogon.txt_lname.focus()">
      <form name="frmlogon" method="post">
       <br>
       <p>
       <p>
       <p><br>
       <p>
        <table border="0" align="center" width="50%" cellpadding="0" cellspacing="0">
         <tr align="middle">
          <td align="middle"><font color="maroon" size="5" name="Times New Roman"><b><u></u></b></font></td>
         </tr>
        </table>
        <br>
       <p>
       <p>
       <p><br>
       <p>
        <table border="4" align="center" width="40%" cellspacing="0" cellpadding="0">
         <tr>
          <td>Last Name</td>
          <td><input name="txt_lname" maxlength="30" selected></td>
         </tr>
         <tr>
          <td>Password</td>
          <td><input type="password" name="txt_pwd" maxlength="20"></td>
         </tr>
         <tr>
         </tr>
         <tr>
          <td>
         <tr>
         </tr>
        </table>

        <table align="center">
         <tr>
          <td>
           <INPUT name="btnLogin" type="submit" value="Login" onclick="javascript:LogOnUser()">
         </tr>
       </td>
      </form>
     </body>
    </html>  
      Error as shown below:

    Any help or advise would be highly appreciated.

                                                      

    M.O