Ajax/atlas 2.0 in visual studio 2005

Last post 11-29-2006 9:13 AM by mohawk523. 6 replies.

Sort Posts:

  • Ajax/atlas 2.0 in visual studio 2005

    11-28-2006, 8:11 PM
    • Member
      141 point Member
    • mohawk523
    • Member since 08-26-2004, 11:00 AM
    • Kent UK
    • Posts 42

    Hi,

    I am trying to enable my site for atlas 2.0 but in visual studio i get red lines under all tags.

    Let me explain to make things easy for my self i used master pages and wrapped the contentplaceholder in an update panel - content template.

    Then in the content pages i have all my controls as soon as i put the update panel on i get red lines. When i run the site it all works as expected no post backs just seamless updating.

    So does any one know whats going on.

    I have tried putting the update panel on the content page as well, still get red lines. Also when this happens intellisense doesn't work anymore so the red lines must go.

    Thanks in advance....

     



    Richard
  • Re: Ajax/atlas 2.0 in visual studio 2005

    11-28-2006, 11:58 PM
    • All-Star
      17,453 point All-Star
    • albertpascual
    • Member since 05-23-2003, 2:11 PM
    • Riverside, CA
    • Posts 3,474

    http://alpascual.com/blog/al/archive/2006/10/24/Manually-upgrading-from-Atlas-to-ASP.NET-2.0-Ajax.aspx

    Check your web.config and compare it with that one to make sure you registered the asp tags without any problems, also check the AJAX dlls are installed in the GAC

    Cheers
    Al
    My Blog
    MapStats.NET
    Please click on 'Mark as Answer' if this post answered your question!
  • Re: Ajax/atlas 2.0 in visual studio 2005

    11-29-2006, 5:17 AM
    • Member
      141 point Member
    • mohawk523
    • Member since 08-26-2004, 11:00 AM
    • Kent UK
    • Posts 42
    Compose
    Options
    Related
    Preview

    Hi albertpascual,

    Thanks for your reply i looked in the assembly Folder i had the design and extensions dll in there. I added preview dll and tried ajax toolkit but it wouldn't have it. Checked the web config from your blog all ok there but i must be missing something do you think the web config holds the key.



    Richard
  • Re: Ajax/atlas 2.0 in visual studio 2005

    11-29-2006, 6:32 AM
    • Member
      141 point Member
    • mohawk523
    • Member since 08-26-2004, 11:00 AM
    • Kent UK
    • Posts 42

    I have made a new ajax enabled site with the 2,0 web config automatically inserted.

    I then made a master page then a content page then an update panel ect and the same happens the controls get the red line. So i now now it cant be the web config in my original site.

    In the assembly folder in windows i can see the dlls except ajax toolset.

    Any more ideas!

    Thanks 



    Richard
  • Re: Ajax/atlas 2.0 in visual studio 2005

    11-29-2006, 6:50 AM
    • Member
      141 point Member
    • mohawk523
    • Member since 08-26-2004, 11:00 AM
    • Kent UK
    • Posts 42
    In the error list it says cannot find schema for microsoft.web ect i spose this had to do with it not registered in the GAC correctly so any body know how to do that!


    Richard
  • Re: Ajax/atlas 2.0 in visual studio 2005

    11-29-2006, 9:04 AM
    Answer
    • Member
      356 point Member
    • ncipollina
    • Member since 10-20-2006, 11:36 AM
    • Richmond, VA USA
    • Posts 79

    One thing I've done to get around this problem is I made the following slight change in my web.config file:

                <controls>
                    <add tagPrefix="aspAjax" namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                    <add tagPrefix="aspAjax" namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                </controls>

     

    then all of my ajax controls have a prefix of aspAjax and not asp.  This caused all of my red lines to go away.  For some reason Visual Studio does not seem to like you using the asp prefix for other assemblies.
     

  • Re: Ajax/atlas 2.0 in visual studio 2005

    11-29-2006, 9:13 AM
    • Member
      141 point Member
    • mohawk523
    • Member since 08-26-2004, 11:00 AM
    • Kent UK
    • Posts 42

    Just as i got your message i found the same thing else where but thanks this does sort it out.

    I would have thought that microsoft would have changed the sample web config.

     

    Thanks again

     



    Richard
Page 1 of 1 (7 items)