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 48:     Public Shared Function Decrypt(ByVal strText As String, ByVal sDecrKey As String) As String
Line 49:         Dim IV() As Byte = {&H12, &H34, &H56, &H78, &H90, &HAB, &HCD, &HEF}
Line 50:         Dim inputByteArray(strText.Length) As Byte
Line 51:         Try
Line 52:             Dim byKey() As Byte = System.Text.Encoding.UTF8.GetBytes(Left(sDecrKey, 8))

Source File: D:\ACT-APP01\Helpdesk_Maintenance\App_Code\Utilities.vb    Line: 50

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Utilities.Decrypt(String strText, String sDecrKey) in D:\ACT-APP01\Helpdesk_Maintenance\App_Code\Utilities.vb:50
   Login.Page_Load(Object sender, EventArgs e) in D:\ACT-APP01\Helpdesk_Maintenance\Login.aspx.vb:92
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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