[Mono-dev] ASP.NET ObjectDataSource problem

Marek Habersack grendello at gmail.com
Wed Jan 3 08:20:30 EST 2007

On Wed, 3 Jan 2007 13:59:35 +0100, "Dariusz Linowski"
<darlin1 at linbit.pl> scribbled:


> Hi,
> I have some problem with ASP.NET application under mono
> (mod-mono-serwer2)  with sys.web library when my  ObjectDataSource
> type call my business class I received error:
> System.InvalidOperationException
> : Type not found: ShipperDataLayer.
> My piece of default.aspx code:
> <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
> SelectMethod="GetShippers"
>             TypeName="ShipperDataLayer"></asp:ObjectDataSource>
The immediate fix is to put the business object in a binary dll located
in your bin/ subdirectory and then use the assembly-qualified type
name for the TypeName attribute above, e.g.:

TypeName="ShipperDataLayer, MyAssemblyName"

The correct fix, though, is to apply the attached patch and recompile
mono (note that the patch is for the svn head version of mono, though)

hope that helps, regards


p.s. Gonzalo, may I commit the attached patch?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjectDataSourceView.cs.diff
Type: text/x-patch
Size: 721 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070103/f592ccfd/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070103/f592ccfd/attachment-0001.bin 

More information about the Mono-devel-list mailing list