I am building a site based on Umbraco. I have a few macros based on usercontrols.
Inside those I wanted to use ASP.NET Ajax. I saw asp.net ajax version and tag prefixes declared in the web.config.. So I tried using the Ajax codes straight in my code for the usercontols (instead of registering it in my controls. I hope this is the right way to do it). But then the macros say I have an error
"System.Web.HttpParseException: The base class includes the field 'ScriptManager1', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager)."
Could it be your website runs on asp.net 3.5? The web.config is default configured to use asp.net 2.0 and ajax 1.0 (with system.web.extensions 1.0.61025.0). You can update the web.config to 3.5 by downloading 'web.config file to use with .NET 3.5+' on http://umbraco.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=23321
Using ASP.NET AJAX in Umbraco 4
Hi everyone..
I am building a site based on Umbraco. I have a few macros based on usercontrols.
Inside those I wanted to use ASP.NET Ajax. I saw asp.net ajax version and tag prefixes declared in the web.config.. So I tried using the Ajax codes straight in my code for the usercontols (instead of registering it in my controls. I hope this is the right way to do it). But then the macros say I have an error
"System.Web.HttpParseException: The base class includes the field 'ScriptManager1', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager)."
Can someone help me get started on this?
Thanks..
Vid
Hi,
I assume you are using .net 3.5? Try the web.config file for Umbraco 4 compatible with .net 3.5 which you can download here
Cheers,
Richard
Could it be your website runs on asp.net 3.5? The web.config is default configured to use asp.net 2.0 and ajax 1.0 (with system.web.extensions 1.0.61025.0). You can update the web.config to 3.5 by downloading 'web.config file to use with .NET 3.5+' on http://umbraco.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=23321
Hi Richard, Jeroen and everyone else
I am running on ASP.NET 2.0. So I am using the right Web.config.. Everything else works like a gem but the AJAX bit..
I am not sure why..
:(
Any help would be greatly appreciated..
Vid
Instead of it being your config it could be in your User Control
In your User Control what version of the System.Web.Extensions you using in your project?
Ensure you are using the 1.0 version and not the 3.5.
Tom
is working on a reply...