I am receiving this error " The type initializer for 'Mapster.TypeAdapterConfig' threw an exception " on mapster 7.2.0 , couldnt use theupdated version cause it breakes my azure msbuild , is there a solution for this ?I am using it for Asp.net legacy application .Once it finishes running the method I get the exception . this is how i am using it
`namespace VirtualPremise.Domain.Financials.BLL
{
[Serializable()]
public class GLGroupEvent : GLEventInfo
{
public int GLEventGroupID { get; set; }
public string GroupName { get; set; }
public decimal ChangeInIndex { get; set; }
public static GLGroupEvent GetGLGroupEvent(int glEventID, string sitekey)
{
try
{
GLEventInfo eventInfo;
eventInfo = BLL.GLEventInfo.GetGLEvent(glEventID, sitekey);
var grpEvent = eventInfo.Adapt<GLGroupEvent>();
return grpEvent;
}
catch (Exception ex)
{
throw;
}
}`
Mapster.TypeAdapterConfig threw an exception , this is the exception I have been getting while trying to Map the objects.How to resolve this issue