[Mono-list] ASP.Net AJAX with Mono?

Ferdinand Funke dr_doom1983 at yahoo.de
Thu Jun 5 04:34:36 EDT 2008


Hello list,
I am just trying out the ASP.Net AJAX extensions under .Net and Mono. Therefore I created a rather simple WebApp with just a SciptManager control on the site. 
Here's the code:


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AjaxTest._Default" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml"; >
<head runat="server">
    <title>Unbenannte Seite</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>

    </div>
    </form>
</body>
</html>


With .Net it all works fine, but with Mono I get a strange error:

Server Error in '/' Application
________________________________

Object reference not set to an instance of an object
Description: HTTP 500. Error processing request.
Stack Trace: 
System.NullReferenceException: Object reference not set to an instance of an object
  at System.Web.UI.ScriptManager.OnPreRenderComplete (System.Object sender, System.EventArgs e) [0x00000] 
  at System.Web.UI.Page.OnPreRenderComplete (System.EventArgs e) [0x00000] 
  at System.Web.UI.Page.ProcessLoadComplete () [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]  
________________________________
Version information:  Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42


I placed the System.Web.Extensions.dll from the Mono directory in the the /bin directory of the application, but the error stays the same. The error also appears when I place more AJAX controls on the site than just the ScriptManager.

Is there anything I missed? 
Any help would be greatly appreciated.

Best regards,

Ferdinand


      __________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com


More information about the Mono-list mailing list