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: 'Afrabit.City' does not contain a definition for 'CityBearings' and no extension method 'CityBearings' accepting a first argument of type 'Afrabit.City' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 44:                 City city = City.Select(short.Parse(Request["CityID"]));
Line 45:                 if (city != null)
Line 46:                     Response.Write(city.CityBearings.OrderBy(CityBearing.CityBearingColumns.BearingID).ToJson());
Line 47:                 else
Line 48:                     Response.Write(" ");

Source File: c:\inetpub\vhosts\septatoys.com\httpdocs\Register.aspx.cs    Line: 46






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