Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'System.Globalization.PersianCalendar' does not contain a definition for 'WhatDay' and no extension method 'WhatDay' accepting a first argument of type 'System.Globalization.PersianCalendar' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 517:                    DataBase db = new DataBase();
Line 518:                    db.Connection = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["HarmonyConnectionString"].ConnectionString;
Line 519:                    DataTable dt1 = db.SqlSelect("Compiler_Shop", "[Date]", "(Domain='" + HttpContext.Current.Session["Domain"].ToString() + "' and show=1  and ((publication_date < '" + p.WhatDay() + "') or (publication_date = '" + p.WhatDay() + "' and publication_time< '" + p.WhatTime() + "'))) and ([GroupsId] LIKE N'%" + AntiHackQuery.test(ValueGroup) + "%') order by id desc"); ;
Line 520:                    DataTable dt2 = db.SqlSelect("Compiler_Shop", "[Date]", "(Domain='" + HttpContext.Current.Session["Domain"].ToString() + "' and show=1  and ((publication_date < '" + p.WhatDay() + "') or (publication_date = '" + p.WhatDay() + "' and publication_time< '" + p.WhatTime() + "'))) order by id desc"); ;
Line 521:                    if (ValueGroup == "0" && dt1.Rows.Count > 0)

Source File: c:\Host\Harmony2019\App_Code\Compiler\Compiler.cs    Line: 519







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