0

"Object reference not set to an instance of an object"例外をスローする C# ASP.NET アプリケーションがあります。

例外をスローする行は

HtmlLink cssTemplate = new HtmlLink();

ログインしたユーザーに基づいて、cssTemplate自分のサイトで変数を使用してCSSシートを設定しています。masterpage

cssTemplate オブジェクトのインスタンス化でこのエラーが発生する理由についてのアイデアはありますか?

更新: 例外のスニペット全体は

Message: Object reference not set to an instance of an object.
Stack Trace: at LRMasterPage.Page_Load(Object sender, EventArgs e in
LRMasterPage.master.cs:line 49
Target Site: Void Page_Load(System.Object, System.EventArgs)
Data: System.Collections.ListDictionaryInternal

実際に問題になるのは System.Collections.ListDictionaryInternal であるかどうか疑問に思っています。

4

0 に答える 0