Unknown server tag

Last post 12-23-2008 11:25 AM by Pawan_Mishra. 10 replies.

Sort Posts:

  • Unknown server tag

    12-13-2006, 10:15 AM
    • Member
      75 point Member
    • deDogs
    • Member since 11-29-2006, 2:13 PM
    • Posts 18

    I am receiving: Element "ScriptManager" is not a known element. This can occur if there is a compilation error in the website. This happens when I add any AJAX component to my application. When I press F5, I then receive: Unknown server tag 'asp:ScriptManager.' I am unable to use any AJAX componetns.

    I am following the Microsoft video

    Video - Developing ASP.NET 2.0 Applications using AJAX

    by Scott Guthrie

    Any suggestions?

    Thank you,

    deDogs.

  • Re: Unknown server tag

    12-15-2006, 5:47 AM
    If you want to run Ajax website in visual studio,you need to download Ajax Beta 2 or Futures Nov CTP from here - http://ajax.asp.net/default.aspx?tabid=47&subtabid=471 first and install them in your PC.Besides,if you need to refer to Ajax controls,you have to add reference to AjaxControlToolkit.dll. Try to download it from here - http://www.codeplex.com/AtlasControlToolkit
    Wish the above can help you get started with Ajax.
  • Re: Unknown server tag

    12-15-2006, 12:19 PM
    • Member
      75 point Member
    • deDogs
    • Member since 11-29-2006, 2:13 PM
    • Posts 18

    Hello,

    I had ajax already installed. The ajax extensions are visible in the toolbar. However, I unistalled ajax, and downloaded and installed a  fresh copy. The ajax extensions are visible in the toolbar, however, when I add, lets say, a ScriptManager (<asp:ScriptManager id="s1" enablepartialrendering="true" runat="server">) to the page. The sqiggly line is displayed below ScriptManager, and when I mouse hover over the sqiggly, the context menu displays: Element "ScriptManager" is not a known element. This can occur if there is a compilation error in the Web site.

    This is not specific to only ScriptManager, it includes all the ajax extension that I receive this error.
     <asp:Timer runat="server">,<asp:UpdatePanel runat="server">, etc.

    I am using Visual Web Developer 2005 Express Edition.

    Any ideas,

    deDogs

  • Re: Unknown server tag

    12-15-2006, 2:09 PM
    • Participant
      1,862 point Participant
    • WishStar99
    • Member since 08-05-2006, 12:11 AM
    • VietNam
    • Posts 552

    deDogs ...

    That's a known issue. It should be fine when you run you app. It's the same on my machine. Sometimes it goes away when  your masterpage (where you put your scriptmanager) is opened.

     

    WS

     

     

    //---------------------------------------------//
    //------------------- Chloé ------------------//
    //---------------------------------------------//
  • Re: Unknown server tag

    12-18-2006, 1:18 AM
    Answer
    Yes.This is a known issue when you use ajax controls in master page and content page based on Ajax Beta 2 framework.But you can run 
    your website fine.Just as WS said,sometimes it went away when your master page or content page is opened.Wish this issue would be resolved in Ajax next release.
  • Re: Unknown server tag

    08-22-2007, 4:43 PM
    • Member
      11 point Member
    • mreynolds
    • Member since 08-22-2007, 8:38 PM
    • Posts 4

    I had a similar problem that was caused primarily by my own lack of knowledge.  I hadn't told the page that I was using AJAX Extensions...so I added to the web.config and my application was brought back to the land of the living.

     

    <pages>

         <controls>

                  <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

          </controls>

    </pages>

  • Re: Unknown server tag

    10-03-2007, 4:24 PM
    • Member
      163 point Member
    • coriolan
    • Member since 09-09-2003, 12:31 PM
    • Posts 65

    Thanks, MReynolds for  the tip.  That helps me greatly.

     

  • Re: Unknown server tag

    07-10-2008, 2:53 AM
    • Member
      26 point Member
    • bryanpaling
    • Member since 06-27-2008, 1:45 AM
    • Posts 12

    I also have the same problem, my situation was, I wasn't using masterpages but just plain aspx form. I also have installed latest AjaxToolkit dll's... any idea guys? need your help... thanks.

  • Re: Unknown server tag

    11-06-2008, 8:54 AM
    • Member
      2 point Member
    • andyoye
    • Member since 11-06-2008, 1:48 PM
    • Posts 1

    I dont see <pages> in my web.config. I do see 

    <pages enableSessionState="false" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">
         .......  

    </pages>

     So should I copy your lines in between <pages enableSessionState ............ </pages> ?

    Thanks

     

  • Re: Unknown server tag

    12-23-2008, 11:00 AM
    • Member
      4 point Member
    • DougMarks
    • Member since 05-29-2007, 1:59 PM
    • Posts 3

    This falls within the configuration tag.

    <system.web>

    <
    pages>

    <controls>

    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </controls>

    </pages>

    </system.web>

     

  • Re: Unknown server tag

    12-23-2008, 11:25 AM
    • Star
      8,473 point Star
    • Pawan_Mishra
    • Member since 03-13-2008, 7:37 AM
    • Bangalore
    • Posts 1,249

     Hi

    Following are some tips to make sure asp.net ajax framework is properly installed :-

    1.) Check out for the following folder/directory in your system :- %system root%/program files/Microsoft Asp.net . (This folder contains the dlls  required for asp.net ajax framework functionality).

    2.) Once asp.net ajax framework is properly installed open VS2005 (incase u r using it , VS2008 already comes with ajax framework ) -> choose web site -> there you can see option "asp.net ajax enabled website" option.

    3.) Now if you want to migrate your existing application to asp.net ajax enabled application , do the following :-

    i) add the dlls to your application bin folder .

    ii) For modification of web config file the best way is to create a dummy web site by choosing "asp.net ajax enabled website" option and then copying the missing portions from this webconfig to your application webconfig file .

    4.) AjaxControlToolkit dll are simply added to your application bin folder , no installation is required as such . Make sure you download proper binaries corresponding to your .net framework installed in your system .

    Regards
    Pawan Mishra

    Too many eyes doesn't make a good code !!!

    .Net 360°
Page 1 of 1 (11 items)