Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 41:         End Try
Line 42:         'restituisco il datatable
Line 43:         Return MioDs.Tables("elenco").Copy
Line 44:     End Function
Line 45: 	

Source File: D:\inetpub\webs\dealturit\tipologie.aspx.vb    Line: 43

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   web_dealtur.GetFoto() in D:\inetpub\webs\dealturit\tipologie.aspx.vb:43
   web_dealtur.dopaging() in D:\inetpub\webs\dealturit\tipologie.aspx.vb:48
   web_dealtur.Page_Load(Object sender, EventArgs e) in D:\inetpub\webs\dealturit\tipologie.aspx.vb:23
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175