{"id":117,"date":"2011-01-09T18:28:00","date_gmt":"2011-01-10T00:28:00","guid":{"rendered":"https:\/\/www.chrystalsander.com\/blog\/?p=117"},"modified":"2011-01-09T18:28:00","modified_gmt":"2011-01-10T00:28:00","slug":"error-ambiguous-server-tag","status":"publish","type":"post","link":"https:\/\/www.chrystalsander.com\/blog\/?p=117","title":{"rendered":"Error:  Ambiguous Server Tag"},"content":{"rendered":"<p>Sometimes I run into this error when using ASP.NET:<\/p>\n<p><span style=\"font-style: italic; color: rgb(255, 0, 0);\">&#8220;The server tag &#8216;asp:ScriptManager&#8217; is ambiguous. Please modify the  associated registration that is causing ambiguity and pick a new tag  prefix.&#8221;     <\/span><\/p>\n<p>Usually, this occurs because I am having a conflict between different versions of System.Web.Extensions.<br \/>\n<\/p>\n<p>For example, in my web.config I have the reference to the 3.5 version:<\/p>\n<p> <span style=\";font-family:&quot;;font-size:9pt;color:blue;\"   ><<\/span><span style=\";font-family:&quot;;font-size:9pt;\"  >add<\/span><span style=\";font-family:&quot;;font-size:9pt;color:blue;\"   > <\/span><span style=\";font-family:&quot;;font-size:9pt;color:red;\"   >tagPrefix<\/span><span style=\";font-family:&quot;;font-size:9pt;color:blue;\"   >=<\/span><span style=\";font-family:&quot;;font-size:9pt;\"  >&#8220;<span style=\"color:blue;\">asp<\/span>&#8220;<span style=\"color:blue;\"> <\/span><span style=\"color:red;\">namespace<\/span><span style=\"color:blue;\">=<\/span>&#8220;<span style=\"color:blue;\">System.Web.UI<\/span>&#8220;<span style=\"color:blue;\"> <\/span><span style=\"color:red;\">assembly<\/span><span style=\"color:blue;\">=<\/span>&#8220;<span style=\"color:blue;\">System.Web.<wbr>Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=<wbr>31bf3856ad364e35<\/span>&#8220;<span style=\"color:blue;\">\/><\/span><\/span><\/p>\n<p> But in my .aspx page I have a reference to the 1.0 version:<br \/>\n<\/p>\n<p> <span style=\";font-family:&quot;;font-size:9pt;\"  ><%<\/span><span style=\";font-family:&quot;;font-size:9pt;color:blue;\"   >@<\/span><span style=\";font-family:&quot;;font-size:9pt;\"  > <span style=\"color: rgb(163, 21, 21);\">Register<\/span> <span style=\"color:red;\">Assembly<\/span><span style=\"color:blue;\">=&#8221;System.Web.<wbr>Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=<wbr>31bf3856ad364e35&#8243;<\/span> <span style=\"color:red;\">Namespace<\/span><span style=\"color:blue;\">=&#8221;System.Web.UI&#8221;<\/span> <span style=\"color:red;\">TagPrefix<\/span><span style=\"color:blue;\">=&#8221;asp&#8221;<\/span> <span style=\"background: none repeat scroll 0% 0% yellow;\">%><\/span><\/span><\/p>\n<p> Solution:   Remove \u201cRegister Assembly\u201d from .aspx and the asp tagPrefix should now  use the web.config version and correctly reference, in this case, AJAX 3.5.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes I run into this error when using ASP.NET: &#8220;The server tag &#8216;asp:ScriptManager&#8217; is ambiguous. Please modify the associated registration that is causing ambiguity and pick a new tag prefix.&#8221; Usually, this occurs because I am having a conflict between different versions of System.Web.Extensions. For example, in my web.config I have the reference to the &hellip; <a href=\"https:\/\/www.chrystalsander.com\/blog\/?p=117\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Error:  Ambiguous Server Tag&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/117"}],"collection":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=117"}],"version-history":[{"count":0,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}