Visual Basic.NET - Exception DataSet no admite System.Nullable<>.

 
Vista:

Exception DataSet no admite System.Nullable<>.

Publicado por Alejandro (2 intervenciones) el 17/09/2015 20:48:04
Resulta que soy algo nuevo en desarrollo .NET y estoy realizando un proyecto en crystal report, el primer reporte pude hacerlo sin novedad, pero el segundo me esta generando esa excepción y el registro de la tabla que le estoy enviando no tiene ningún valor null, no se que métodos realizar para dar con el problema y su solución.

Este es el error que muestra:
System.NotSupportedException: DataSet no admite System.Nullable<>.
en System.Data.DataColumn..ctor(String columnName, Type dataType, String expr, MappingType type)
en System.Data.DataColumnCollection.Add(String columnName, Type type)
en CrystalDecisions.CrystalReports.Engine.Table.BuildTableFromMemberInfos(ArrayList memberInfos, Boolean autoFlattenCurrentLevel, Int32 currentLevel, Int32 maximumLevels, String namePrefix, DataTable table)
en CrystalDecisions.CrystalReports.Engine.Table.BuildTableFromEnumerable(IEnumerable collection, Type dataClassType, String tableName)
en CrystalDecisions.CrystalReports.Engine.Table.EnumerableToDataSet(IEnumerable collection)
en CrystalDecisions.CrystalReports.Engine.Table.WrapAndCacheDotNetObject(Object val, Type type, ISCRAdoNetDataSet& crAdoNetDataSet)
en CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)
en CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)
en CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(IEnumerable enumerable)

y este es el un segmento del código que estoy realizando:

Dim reporte As New CertificadoCalidadReport
reporte.Load("cacaoView.CertificadoCalidadReport.rpt")
Dim lstAuxFac As New List(Of CacaoService.Factura)
lstAuxFac.Add(facturas)
reporte.SetDataSource(lstAuxFac)
crystalReportsViewer1.ViewerCore.ReportSource = reporte Agradezco mucho la ayuda que puedan prestarme.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder