[Mono-dev] Regression with custom web controls

Christopher Bergström cbergstrom at netsyncro.com
Sat Nov 12 06:19:32 EST 2005


Scenario..

Mono version 1.1.10-2

Page foobar.aspx contains

<%@ Register TagPrefix="Custom" Namespace="wbCtl_NetSyncro_Menu" Assembly = "CustomControls" %>
<Custom:NetSyncroMenuBuilder StoreNumber="1"  runat=server/>

bin/ contains the CustomControls.dll

The CustomControls.dll does a number of things.
1) Looks at the StoreNumber parameter
1) Connects to a SQLserver (2000 with at least SP 3)
2) Pulls the data and builds the html to render the control

Results :

500 server error every time

System.NotImplementedException: The requested feature is not implemented.
in <0x005af> System.Data.SqlClient.SqlConnection:SetProperties (System.String name, System.String value)
in <0x002ef> System.Data.SqlClient.SqlConnection:SetConnectionString (System.String connectionString)
in <0x00017> System.Data.SqlClient.SqlConnection:set_ConnectionString (System.String value)
in (wrapper remoting-invoke-with-check) System.Data.SqlClient.SqlConnection:set_ConnectionString (string)
in <0x0005c> wbCtl_NetSyncro_Menu.NetSyncroMenuBuilder:set_StoreNumber (System.String value)
in <0x00033> ASP.cheap_domains_aspx:__BuildControl__bctrl_10 ()
in <0x0004a> ASP.cheap_domains_aspx:__BuildControlTree (System.Web.UI.Control __ctrl)
in <0x00031> ASP.cheap_domains_aspx:FrameworkInitialize ()
in <0x00084> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context)
in <0x01068> System.Web.HttpApplication+<Pipeline>__1:MoveNext ()

Desired results :

Render control

(It worked up to 1.1.9-2)

(Temporary fix and potentially a better solution overall is to use overall is a usercontrol..) My orginal motivation was to install a Custom control into gac which handled a number of very common e-commerce type actions.  Then customers with a few lines of code could be setup and working very quickly.
<%@ Register TagPrefix="NetSyncro" TagName="MenuControl" Src="Inc/ControlMenu.ascx" %>
<NetSyncro:MenuControl id="MenuControl" runat="server"></NetSyncro:MenuControl>

If someone is interested I'll see if I can make a test case or attach the .dll

Thanks

C.




More information about the Mono-devel-list mailing list