Why AJAX doesn't work at my server ? Please help me.

Last post 11-30-2006 7:34 PM by EmilChristopherMelar. 7 replies.

Sort Posts:

  • Why AJAX doesn't work at my server ? Please help me.

    11-16-2006, 6:14 AM
    • Member
      324 point Member
    • Grzesiek23
    • Member since 12-23-2005, 5:52 PM
    • Posts 251
    So I was working and I made my site - at localhost all is OK, all Ajax controls are working fine. But after upload files to the server when I go to my site ( http://www...... ) it doesn't work anymore. I don't know what I have to do ? I uploaded all this libraries (Extensions,Preview,Designer) but nothing works. I also try this, that I make clean AJAX (CTP-Enabled) site with only WatermarkText with AJAX and the same - on localhost works, on server doesn't work. Any ideas ? Please help me people :)
  • Re: Why AJAX doesn't work at my server ? Please help me.

    11-16-2006, 11:42 AM
    • Member
      324 point Member
    • Grzesiek23
    • Member since 12-23-2005, 5:52 PM
    • Posts 251
     

    This is code my site:

    Default.aspx:

     

    <%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>
    
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" />
            <div>
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="TextBox1" WatermarkText="hip hop !">
                </cc1:TextBoxWatermarkExtender>
            </div>
        </form>
    </body>
    </html>
    
    And the web.config is untouched - I mean the same when I started new website (AJAX CTP). Any ideas ?
  • Re: Why AJAX doesn't work at my server ? Please help me.

    11-16-2006, 2:28 PM

    You arent telling us anything about what error you are getting, are you getting any error at all?

     Remember, "doesn't work" is not an error nor a question.

    Please provide more details. I could take a wild guess on assembly references. Remember that you probably have them in the GAC locally.
     

    Knowledge Is Power!
  • Re: Why AJAX doesn't work at my server ? Please help me.

    11-16-2006, 11:42 PM
    • Member
      225 point Member
    • pradpb999
    • Member since 11-14-2006, 9:57 AM
    • Posts 43

    Hi,

        In your local machine you are installed AJAX Beta2, so you are able to work on AJAX functionality,

        but coming to your server, how can you run AJAX functionality without installation,

        either you should install the AJAX Beta2 in your server

        OR

        install neccessary AJAX dll's in the GAC of the server

        AJAX Beta2/Beta1 is not a part of .Net Framework,

     

    Pradeep Kumar Bura

     

                               To make more interactive and sportive please check this as a answer if above information is helpful to you.

  • Re: Why AJAX doesn't work at my server ? Please help me.

    11-17-2006, 3:56 AM
    • Member
      5 point Member
    • ov-s1
    • Member since 11-17-2006, 8:47 AM
    • Posts 1

    Hello!

    I have the same problem and I've tested that AJAX have been installed on my server. I have JScript error on my server: "Sys is undefined".

    <script type="text/javascript">
    <!--
    Sys.Application.initialize();
    // -->
    </script>

  • Re: Why AJAX doesn't work at my server ? Please help me.

    11-17-2006, 4:15 AM
    • Member
      70 point Member
    • Handi
    • Member since 07-29-2005, 7:56 AM
    • Posts 12

    In Section 4.1 of "Release Notes for ASP.NET 2.0 AJAX Extensions Beta 2", there are something about "sys is not defined"

     

    ov-s1:

    Hello!

    I have the same problem and I've tested that AJAX have been installed on my server. I have JScript error on my server: "Sys is undefined".

    <script type="text/javascript">
    <!--
    Sys.Application.initialize();
    // -->
    </script>

    MSN: handiz@hotmail.com
  • Re: Why AJAX doesn't work at my server ? Please help me.

    11-19-2006, 6:34 PM
    • Member
      5 point Member
    • Andado
    • Member since 11-19-2006, 11:12 PM
    • Sweden
    • Posts 1
    ov-s1:

    Hello!

    I have the same problem and I've tested that AJAX have been installed on my server. I have JScript error on my server: "Sys is undefined".

    <script type="text/javascript">
    <!--
    Sys.Application.initialize();
    // -->
    </script>

    there is another thread about this problem right here http://forums.asp.net/thread/1446560.aspx

    ----------
    Veritas vos liberabit
  • Re: Why AJAX doesn't work at my server ? Please help me.

    11-30-2006, 7:34 PM

    I have the same issue on my laptop now, running IE7. But not on my desktop computer which is also running IE7.

    I say: WTF? 

    I tried to create a blank ajax-enabled project (straight from template), BOOM - UpdatePanel -> Sys is undefined.

    I was holding a presentation about ajax in the Norwegian .NET User Group and got this live. That really sucked. I feel terrible Big Smile

     

    What browser do you use?

    How does your web.config look like?

    Do you use Forms authentication?

    Did you take a look at  C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\web.config and compared?

    Knowledge Is Power!
Page 1 of 1 (8 items)