Errore server nell'applicazione '/'.

Object reference not set to an instance of an object.

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: Object reference not set to an instance of an object.

Errore nel codice sorgente:


Riga 2015:    public void setLanguage()
Riga 2016:    {
Riga 2017:        string lan_gif = mappingLanguage(Session["lingua"].ToString());
Riga 2018:        //string lan_gif = mappingLanguage(Session["Lang"].ToString());
Riga 2019:

File di origine: c:\inetpub\wwwroot\rbplantSVIL\settingList.aspx.cs    Riga: 2017

Traccia dello stack:


[NullReferenceException: Object reference not set to an instance of an object.]
   preview_dotnet_templates_akshara_multi_master_settingList.setLanguage() in c:\inetpub\wwwroot\rbplantSVIL\settingList.aspx.cs:2017
   preview_dotnet_templates_akshara_multi_master_settingList.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\rbplantSVIL\settingList.aspx.cs:39
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


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