AjaxControlToolkit and SmartNavigation
After spending almost 2 hours investigating the following problem with a Ajax dropdown extension object:
‘Error: Sys.ArgumentTypeException: Object of type ‘AjaxControlToolkit.PopupBehavior’ cannot be converted to type ‘AjaxControlToolkit.PopupBehavior’.
I finally realized the page was using the smartNavigation directive. This directive has become obsolete with .NET 2.0, you can now use Page.SetFocus() and
Page.MaintainScrollPositionOnPostBack() instead to obtain similar result. However, during the upgrade process from 1.1, the wizard didn’t flag this directive as a problem, so
I was not aware of its presence until I came across the problem above.
Anyway, I was not surprised that upon removing this directive, the page was no longer throwing the javascript exception.
Lesson learned.
July 10, 2007 at 3:17 am
Rafael, without your post I think I never wouldn’t found this issue on my ASP.NET 2.0 site.
After removing smartnavigation attribute the javascript error disappeared.
Error: Sys.ArgumentTypeException: Object of type ‘AjaxControlToolkit.MaskedEditbehavior’ cannot be converted to type ‘AjaxControlToolkit.MaskedEditbehavior’.
thx,
David
October 29, 2007 at 12:59 pm
You are my hero! How did you ever determine that smartNavigation was at fault? Probably some nasty trial and error. You’ve got to love unrelated error messages
Thanks,
Joel
November 12, 2007 at 1:56 pm
Man you saved my mental health with this post!
November 12, 2007 at 2:54 pm
I’ve had problems with Smartnavigation before, so after I had spent two hours trying to get this fixed to no avail, I decided to remove SmartNavigation and baaaam! everything started working like a dream.
December 10, 2007 at 1:34 pm
I have been sitting with this problem for months, and now it is solved!!!
:) 
We had many weird errors on our production web and they were basially untraceable…
Thanks!
July 19, 2008 at 11:37 am
Awesome - thanks for posting this. You are the only person on the internet with the solution to this problem!
July 23, 2009 at 4:48 am
Thanks for this post, you save me from a waste of time !
December 5, 2009 at 10:44 pm
Thanks a lot! Really saved a lot of time for me!
June 25, 2010 at 6:56 pm
PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.PillSpot.org.< b > < a href=”http://pillspot.org/products/vitamins_herbal_supplements/ Herbal-supplements@buy.online” >.< /a >…
Categories: Womens Health.Weight Loss.Pain Relief.Antidiabetic.Anxiety/Sleep Aid.Antibiotics.Anti-allergic/Asthma.Stop SmokingAntidepressants.Antiviral.Mental HealthSkin Care.Eye Care.Stomach.Mens Health.Vitamins/Herbal Supplements.Blood Pressure/…
August 29, 2010 at 6:33 am
furniture http://gperfumetob.02JEEPPARTS.US/tag/Levitz+furniture+Furniture/ : Levitz…
furniture…
August 29, 2010 at 5:35 pm
Screen http://hinobzl.AUTOTECHGUIDE.INFO/tag/In-Dash+Touch+Screen+LCD+lcd/ : Touch…
Touch…
August 29, 2010 at 6:11 pm
Light http://wvictorialthmz.AUTOTECHGUIDE.INFO/tag/Halloween+Strobe+Light/ : Strobe…
Halloween…
August 29, 2010 at 10:18 pm
xbox http://yguncgqcgi7.BEDROOMPROPERTY.INFO/tag/xbox+computer+ps2/ : computer…
xbox…