Errore server nell'applicazione '/'.

Riferimento a un oggetto non impostato su un'istanza di oggetto.

Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere la traccia dello stack.

Dettagli eccezione: System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.

Errore nel codice sorgente:


Riga 189:      // 3. Get News Translations.
Riga 190:      TranslationDAL translationDAL = new TranslationDAL("News");
Riga 191:      object[] values = { news, translationDAL.GetAllTranslations("NewsIdentity", news.NewsId) };
Riga 192:
Riga 193:      // 4. Return Values.

File di origine: c:\Siti\LeonDOro\App_Code\DataAccessLayer\NewsDAL.cs    Riga: 191

Traccia dello stack:


[NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.]
   ASCOM.Weblify.DataAccessLayer.NewsDAL.Get(Int32 newsId, String culture) in c:\Siti\LeonDOro\App_Code\DataAccessLayer\NewsDAL.cs:191
   NewsDetail.BindForm() in c:\Siti\LeonDOro\NewsDetail.aspx.cs:31
   NewsDetail.InitializePage() in c:\Siti\LeonDOro\NewsDetail.aspx.cs:25
   NewsDetail.Page_Load(Object sender, EventArgs e) in c:\Siti\LeonDOro\NewsDetail.aspx.cs:20
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


Informazioni di versione: Versione di Microsoft .NET Framework:4.0.30319; Versione di ASP.NET:4.6.1590.0