Server Error in '/' Application.

Conversion from type 'DBNull' to type 'String' is not valid.

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.InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.

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:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +862
   Unisoft.EFinance.WebModule.QuoteModule.LoadQuote(String quoteid, Boolean isQuoteApprovalMode) in C:\Projects\VS2022\FinanceComponents\Unisoft.PFC.Inquiry\Unisoft.EFinance.WebModule\EFinance\Partial\QuoteModule.Quote.Persist.vb:178
   Unisoft.EFinance.WebModule.QuoteModule.ValidateRequestSavedMode() in C:\Projects\VS2022\FinanceComponents\Unisoft.PFC.Inquiry\Unisoft.EFinance.WebModule\EFinance\Modules\QuoteModule.ascx.vb:1087
   Unisoft.EFinance.WebModule.QuoteModule.ValidateRequestMode() in C:\Projects\VS2022\FinanceComponents\Unisoft.PFC.Inquiry\Unisoft.EFinance.WebModule\EFinance\Modules\QuoteModule.ascx.vb:1012
   Unisoft.EFinance.WebModule.QuoteModule.Page_Load(Object sender, EventArgs e) in C:\Projects\VS2022\FinanceComponents\Unisoft.PFC.Inquiry\Unisoft.EFinance.WebModule\EFinance\Modules\QuoteModule.ascx.vb:173
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2862