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: CS1502: The best overloaded method match for 'string.Replace(string, string)' has some invalid arguments

Source Error:


Line 164:        }
Line 165:		
Line 166:		source = source.Replace("(date)", pc.GetDayOfWeek(datetime));
Line 167:
Line 168:        return source;

Source File: c:\Host\Harmony2019\UserControl\Head.ascx.cs    Line: 166





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