Server Error in '/' Application.

Input string was not in a correct format.

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.FormatException: Input string was not in a correct format.

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:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +230
   System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) +135
   System.Convert.ToDecimal(String value, IFormatProvider provider) +90
   System.String.System.IConvertible.ToDecimal(IFormatProvider provider) +11
   System.Convert.ToDecimal(Object value) +32
   Unisoft.PFC.Data.Mappers.Mapper.MapToQuotePolicies(DataRow row, String companyInitials) in C:\Projects\VS2022\FinanceComponents\Unisoft.PFC.Inquiry\Unisoft.PFC.Data\Mappers\Mapper.cs:1082
   Unisoft.PFC.Data.Mappers.Mapper.Map(FinanceContracts FinanceContract) in C:\Projects\VS2022\FinanceComponents\Unisoft.PFC.Inquiry\Unisoft.PFC.Data\Mappers\Mapper.cs:587
   Unisoft.PFC.Data.Companies.PFC.DataAccess.Quotes.CFinanceContractsPersist.InsertFinanceContractNew(FinanceContracts FinanceContractsData) in C:\Projects\VS2022\FinanceComponents\Unisoft.PFC.Inquiry\Unisoft.PFC.Data\Companies\PFC\DataAccess\Quotes\CFinanceContractsPersist.cs:54
   Unisoft.EFinance.CFinanceContractsSystem.InsertFinanceContractNEW(FinanceContracts FinanceContractsData) in C:\Projects\VS2022\FinanceComponents\Unisoft.PFC.Inquiry\Unisoft.EFinance.Facade\Contracts\CFinanceContractsSystem.vb:3347
   Unisoft.EFinance.WebModule.QuoteModule.ProcessContract(ProcessQuoteAction QuoteAction) in C:\Projects\VS2022\FinanceComponents\Unisoft.PFC.Inquiry\Unisoft.EFinance.WebModule\EFinance\Partial\QuoteModule.Quote.Persist.vb:8034
   Unisoft.EFinance.WebModule.equote.SaveForApproval() in C:\Projects\VS2022\FinanceComponents\Unisoft.PFC.Inquiry\Unisoft.EFinance.WebModule\EFinance\Quotes\equote.aspx.vb:459
   Unisoft.EFinance.WebModule.equote.btnSaveforApproval_Click(Object sender, EventArgs e) in C:\Projects\VS2022\FinanceComponents\Unisoft.PFC.Inquiry\Unisoft.EFinance.WebModule\EFinance\Quotes\equote.aspx.vb:444
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +109
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +108
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +31
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3478