[Mono-list] moving application to mono 1.2.3.1 on debian

luca morelli luca at lucamorelli.it
Tue Mar 27 09:59:25 EDT 2007


Hi,
	I developed an asp.net with visual studio 2005 and tested with mono
1.2.3.1 under fedora core 5, and all is going fine. I moved the application
in another linux server using debian sarge 3.1, with mono 1.2.3.1 installed
with the generic binary installer, and mod_mono 1.2.1 installed by source,
by opening some pages I have the following error message with grid view.

System.NullReferenceException: Object reference not set to an instance of an
object
  at System.Web.UI.WebControls.GridView.RenderGrid
(System.Web.UI.HtmlTextWriter writer) [0x000a5] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI.WebControl
s/GridView.cs:1837 
  at System.Web.UI.WebControls.GridView.Render (System.Web.UI.HtmlTextWriter
writer) [0x00012] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI.WebControl
s/GridView.cs:1809 
  at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
writer) [0x00048] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI/Control.cs
:1097 
  at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter
writer) [0x00067] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI/Control.cs
:957 
  at System.Web.UI.HtmlControls.HtmlForm.RenderChildren
(System.Web.UI.HtmlTextWriter w) [0x00034] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI.HtmlContro
ls/HtmlForm.cs:367 
  at System.Web.UI.HtmlControls.HtmlContainerControl.Render
(System.Web.UI.HtmlTextWriter writer) [0x00007] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI.HtmlContro
ls/HtmlContainerControl.cs:127 
  at System.Web.UI.HtmlControls.HtmlForm.Render
(System.Web.UI.HtmlTextWriter w) [0x00000] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI.HtmlContro
ls/HtmlForm.cs:387 
  at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
writer) [0x00048] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI/Control.cs
:1097 
  at System.Web.UI.HtmlControls.HtmlForm.RenderControl
(System.Web.UI.HtmlTextWriter w) [0x00000] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI.HtmlContro
ls/HtmlForm.cs:376 
  at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter
writer) [0x00067] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI/Control.cs
:957 
  at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer)
[0x00000] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI/Control.cs
:936 
  at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
writer) [0x00048] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI/Control.cs
:1097 
  at System.Web.UI.Page.InternalProcessRequest () [0x002b2] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI/Page.cs:11
18 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00051] in
/tmp/scratch/BUILD/mono-1.1.16/mcs/class/System.Web/System.Web.UI/Page.cs:10
02

	The strange thing is I have other pages with gridview that are
opened correctly: I removed the column definitions and the load of the
datasource bu the problem is still present, and If I set the visible
property at false I have no error.
	Can you give me some help?

Best regards,
	Luca morelli



More information about the Mono-list mailing list