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: CS0136: A local variable named 'p' cannot be declared in this scope because it would give a different meaning to 'p', which is already used in a 'parent or current' scope to denote something else

Source Error:


Line 516:                {
Line 517:                    DataBase db = new DataBase();
Line 518:                    Pcalendar p = new Pcalendar();
Line 519:                    db.Connection = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["HarmonyConnectionString"].ConnectionString;
Line 520:                    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"); ;

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







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