AIUTO !che errore è?

giovedì 02 marzo 2006 - 15.16

hya77 Profilo | Newbie

Di seguito ecco l'errore che mi da in produzione. in sviluppo va tutto ok!
HELP ME
Server Error in '/AutLav' 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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
System.Enum.InternalGetValue() +0
System.Enum.System.IConvertible.ToSByte(IFormatProvider provider) +5
ApplicWeb.Lavori.POPOLA_LAVORO() in C:\Inetpub\wwwroot\Homeappl\ApplicWeb\Lavori.aspx.vb:648
ApplicWeb.Lavori.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\Homeappl\ApplicWeb\Lavori.aspx.vb:527
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
HYA NON E' ROCK MA HARD ROCK!

Pongo Profilo | Senior Member

Dovrebbe essere l'uso di una variabile non inizializzata.

sarebbe come vole referenziare un puntatore che non punta a nulla.


Per farti un esempio , se dichiaro una stringa, poi in compilazione mi permette di andarne a vedere la lunghezza. Ma se a run time la stringa non è inizializzata allora viene lanciato un errore.

O così mi sembra!
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5