'/ja' アプリケーションでサーバー エラーが発生しました。

オブジェクト参照がオブジェクト インスタンスに設定されていません。

説明: 現在の Web 要求を実行中に、ハンドルされていない例外が発生しました。エラーに関する詳細および例外の発生場所については、スタック トレースを参照してください。

例外の詳細: System.NullReferenceException: オブジェクト参照がオブジェクト インスタンスに設定されていません。

ソース エラー:


行 24:     protected override void InitializeCulture()
行 25:     {
行 26:         string strDefaultLanguage = HttpContext.Current.Request.UserLanguages[0];
行 27:         string strLanguage = "ja-JP";
行 28:         

ソース ファイル: c:\Website\EnglishBellv2\ja\App_Code\PopupPage.cs    行: 26

スタック トレース:


[NullReferenceException: オブジェクト参照がオブジェクト インスタンスに設定されていません。]
   PopupPage.InitializeCulture() in c:\Website\EnglishBellv2\ja\App_Code\PopupPage.cs:26
   ASP.mypage_progresstest6_aspx.__BuildControlTree(mypage_progresstest6_aspx __ctrl) in c:\Website\EnglishBellv2\ja\mypage\progresstest6.aspx:1
   ASP.mypage_progresstest6_aspx.FrameworkInitialize() in c:\Website\EnglishBellv2\ja\mypage\progresstest6.aspx.cs:912308
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +51
   System.Web.UI.Page.ProcessRequest() +74
   System.Web.UI.Page.ProcessRequest(HttpContext context) +69
   ASP.mypage_progresstest6_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\ja\f5421e72\b1036d8f\App_Web_0opgkwg1.6.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +789
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87


バージョン情報: Microsoft .NET Framework バージョン:4.0.30319; ASP.NET バージョン:4.7.4076.0