[Mono-dev] Question about AjaxToolkit and System.Web.Extensions on Mono

Marek Habersack grendel at twistedcode.net
Thu Oct 2 02:23:53 EDT 2008


On Wed, 1 Oct 2008 14:47:52 -0400
"Karel Tamayo" <eddyk832005 at gmail.com> wrote:

> Hi everybody:
> 
>   I'd be glad if anyone could help me here.
> 
>   I'm running a web application on mono. I did port it from asp.net using
> moma and although I was using VS 2008 I was targeting .net framework 2.0 to
> be OK with compatibility issues.
> 
>   I got the System.Web.Extensions.dll for the mono framework and copied in
> Bin folder of my application.
> 
>   The application runs perfectly but the Ajax stuff are not working at all.
> I mean,  I can load the page in which I have 2 linked dropdowns with states
> and municipalities data but, the update panel in which both are contained
> doesn't work. My page is making a full postback to the server every time I
> change the selected item of the states dropdown.
> 
>  I checked the error console and then I sow that the initialization script
> is setting this error message:
>     *Error: ASP.NET Ajax client-side framework failed to load.*
> 
> Where do I have to copy the toolkit, the extensions? What am I missing???
You don't need the Microsoft System.Web.Extensions.dll, Mono ships its own version.
All you need to do is to is to provide appropriate Web.config options. To add them
to your existing config or create a new Web.config, issue this command (assuming
you're running Mono 1.9 or later):

mconfig af -t:web AJAX

As for the Ajax Control Toolkit - download their demos, but make sure you're
downloading the version for .NET 2.0, the 3.5 version might still give problems. Run
xsp2 in the toolkit demos toplevel dir and everything should work as expected.

regards,

marek


More information about the Mono-devel-list mailing list