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: CS1579: foreach statement cannot operate on variables of type 'object' because 'object' does not contain a public definition for 'GetEnumerator'

Source Error:


Line 77:                                                             if (ViewData["Mark"] != null)
Line 78:                                                             {
Line 79:                                                                 foreach (var Mark in ViewData["Mark"])
Line 80:                                                                 {
Line 81:                                                                     if (PrevItem != Mark.MARK)

Source File: d:\vhosts\smgcommerce.com\arikimlab.com\Views\Urunler\MarkaUrun.cshtml    Line: 79






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