[Mono-dev] ASP.NET ObjectDataSource problem

Dariusz Linowski darlin1 at linbit.pl
Wed Jan 3 10:49:23 EST 2007


2007/1/3, Dariusz Linowski <darlin1 at dgt.com.pl>:
> 2007/1/3, Marek Habersack <grendello at gmail.com>:
> > On Wed, 3 Jan 2007 13:59:35 +0100, "Dariusz Linowski"
> > <darlin1 at linbit.pl> scribbled:
> >
> > Hello,
> >
> > > Hi,
> > > I have some problem with ASP.NET application under mono 1.2.2.1-0
> > > (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
> >
> > marek
> >
> > p.s. Gonzalo, may I commit the attached patch?


Thanks Marek,
Immediate fix suggestion was helped. The  mono recompile I'll try later.


Pozdrawiam,
Dariusz Linowski



-- 
Pozdrawiam,
Dariusz Linowski



More information about the Mono-devel-list mailing list