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 47:     ''' <remarks></remarks>
Line 48:     Public Shared Function Decrypt(ByVal encryptedString As String) As String
Line 49:         If encryptedString.Trim.Length <> 0 Then
Line 50:             encryptedString = encryptedString.Replace(" ", "+")
Line 51: 

Source File: D:\InetPub\vhosts\cadigwe-7045.package\sophiaerp.com\wwwroot\App_Code\StringHelpers.vb    Line: 49

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   StringHelpers.Decrypt(String encryptedString) in D:\InetPub\vhosts\cadigwe-7045.package\sophiaerp.com\wwwroot\App_Code\StringHelpers.vb:49
   jobpreview.Page_Load(Object sender, EventArgs e) in D:\InetPub\vhosts\cadigwe-7045.package\sophiaerp.com\wwwroot\NG\jobpreview.aspx.vb:12
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853


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