HEllo Team,
While debugging ,I am getting the error as follows .
"Object synchronization method was called from an unsynchronized block of code."
I have the code as follows :
I am getting the error in Global.asax:
public class Global : System.Web.HttpApplication
{
/// <summary>
/// The Application_Start event fires when application starts first time.
/// </summary>
/// <param name="sender">The sender object page.</param>
/// <param name="e">An event arguments</param>
protected void Application_Start(object sender, EventArgs e)
{
Logger.Write("Preparing cache in Application_Start event started", LogType.Information);
Kaizen2GController kaizen2GController = new Kaizen2GController();
Logger.Write("Preparing cache in for combined masters started", LogType.Information);
kaizen2GController.GetDsitinctCombinedMasterRecords(null);
Logger.Write("Preparing cache in for combined masters ends", LogType.Information);
Logger.Write("Preparing cache in for filtered circles start", LogType.Information);
kaizen2GController.GetFilteredCircles(null);
Logger.Write("Preparing cache in for filtered circles ends", LogType.Information);
Logger.Write("Preparing cache in for Regions start", LogType.Information);
kaizen2GController.GetRegions();
Logger.Write("Preparing cache in for region ends", LogType.Information);
Logger.Write("Preparing cache in for CFR Master start", LogType.Information);
kaizen2GController.GetCfrMasters();
Logger.Write("Preparing cache in for CFR Master ends", LogType.Information);
Logger.Write("Preparing cache in Application_Start event Ended", LogType.Information);
}
}
Exactly i am getting the error on line
Kaizen2GController kaizen2GController = new Kaizen2GController();
I am not getting any idea .Please guide me if you can.
Wher and how i can find the unsynchronized block of code."
Thanks
Harshal