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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   WLoH.Ranking.LagDudeListe(Dictionary`2 ranx) in C:\Users\eskil\Dropbox\WLoH\WLoH\WLoH\Ranking.cs:507
   WLoH.ArticleClass.LagBrukersGamleSesongHistorie(Int32 brukerID, Int32 spraak, Tabell tabellen, Dictionary`2 navneliste, Dictionary`2 navnene, List`1 gamleses, Dictionary`2 seriekatalog, Int32[] bestogdårligst, Int32[] delt, List`1 vårheltskamper, List`1 allekamper) in C:\Users\eskil\Dropbox\WLoH\WLoH\WLoH\Article.aspx.cs:310
   WLoH.News.GenerateNewsArticle(String forsideoverskrift, Int32 hovedperson, Int32 omtaltserie, FotballbrukerNy bruker, Int32 browserspråk) in C:\Users\eskil\Dropbox\WLoH\WLoH\WLoH\News.aspx.cs:339
   WLoH.News.Page_LoadArticle(String scoop, FotballbrukerNy bruker, Int32 browserspråk) in C:\Users\eskil\Dropbox\WLoH\WLoH\WLoH\News.aspx.cs:233
   WLoH.News.Page_Load(Object sender, EventArgs e) in C:\Users\eskil\Dropbox\WLoH\WLoH\WLoH\News.aspx.cs:86
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


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