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 135:        if (!string.IsNullOrEmpty(Request.QueryString["Dil"])) GelenDilKodu = Request.QueryString["Dil"];
Line 136:
Line 137:        DilLinkKodu = Fonksiyonlar.DilLinkKoduAl(GelenDilKodu);
Line 138:        tblDiller DilBilgisi = Fonksiyonlar.DilBilgileri(DilLinkKodu);
Line 139:        DilID = DilBilgisi.ID;

Source File: c:\inetpub\vhosts\plexfood.com.tr\httpdocs\Default.aspx.cs    Line: 137

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Dataislemleri.Fonksiyonlar.DilLinkKoduAl(String GelenDilKodu) in E:\NET_Projeler\Projeler\plexfood.kk\Dataislemleri\Fonksiyonlar.cs:230
   _Default.InitializeCulture() in c:\inetpub\vhosts\plexfood.com.tr\httpdocs\Default.aspx.cs:137
   ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) in c:\inetpub\vhosts\plexfood.com.tr\httpdocs\Default.aspx:1
   ASP.default_aspx.FrameworkInitialize() in c:\inetpub\vhosts\plexfood.com.tr\httpdocs\Default.aspx.cs:912308
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +48
   System.Web.UI.Page.ProcessRequest() +76
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +24
   System.Web.UI.Page.ProcessRequest(HttpContext context) +62
   ASP.default_aspx.ProcessRequest(HttpContext context) in c:\inetpub\vhosts\plexfood.com.tr\tmp\root\181360b8\d9e359d3\App_Web_fk3pohba.6.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0