Server Error in '/' Application.

Value cannot be null.
Parameter name: key

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.ArgumentNullException: Value cannot be null.
Parameter name: key

Source Error:


Line 54:             lock (GDictionary)
Line 55:             {
Line 56:                 if (GDictionary.ContainsKey(aspsession))
Line 57:                 {
Line 58:                     resultMain = ((Dictionary<string, object>)GDictionary[aspsession]);

Source File: c:\HostingSpaces\stephens\ststephensschool.co.in\wwwroot\App_Code\Services\ApplicationServices.cs    Line: 56

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: key]
   System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) +44
   System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +7671729
   System.Collections.Generic.Dictionary`2.ContainsKey(TKey key) +4
   SchoolSoft.Services.ApplicationServices.GetGDictionary(String key) in c:\HostingSpaces\stephens\ststephensschool.co.in\wwwroot\App_Code\Services\ApplicationServices.cs:56
   ADMIN_AdmStudentApplication.CheckPreveledge() in c:\HostingSpaces\stephens\ststephensschool.co.in\wwwroot\stapp\AdmStudentApplication.aspx.cs:1551
   ADMIN_AdmStudentApplication.Page_Load(Object sender, EventArgs e) in c:\HostingSpaces\stephens\ststephensschool.co.in\wwwroot\stapp\AdmStudentApplication.aspx.cs:31
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975