Visual Studio during Debugging: The function evaluation requires all threads to run

Cause This isn't an error in and of itself, but more of a feature of your debugger. Some properties require code to be executed so that the property can be read, but if this requires cross-thread interaction, then other threads may have to run as well. The debugger doesn't do this automatically, but certainly can,... Continue Reading →

StoredProcedureName_Result not found

Solution If your stored procedure i returning just a column or more than 1 columns and not returning the ID column that is the primary key, this error would occur. Just include ID or * in select statement e.g. ALTER PROCEDURE [dbo].[sp_FillMenuItems] AS BEGIN SELECT * from t_Menu End OR ALTER PROCEDURE [dbo].[sp_FillMenuItems] AS BEGIN... Continue Reading →

There is no ViewData item of type ‘IEnumerable’ that has the key ‘DropDownList’.

Solution In Controller ViewData["DropDownList"] = clsChargesCollection.FillInstallments().Select(x => new SelectListItem { Text = x.Description, Value = x.ID.ToString() }).ToList(); Syntax ViewData["name to be given"]=db.MethodName.Select(object => new SelectListItem{Text = object.columnName, Value = object.columnName.ToString()}.ToList(); In View: Try to access the variable within the top of your View where titles are given @{ List <SelectListItem> MemIds = ViewData["DropDownlist"] as List<SelectListItem>;... Continue Reading →

System.Web.HttpException: The following sections have been defined but have not been rendered for the layout page “~/Views/Shared/_Layout.cshtml”: “Scripts”.

Solution The exception occurs if you have defined a section in your master Layout.cshtml, but you have not included anything for that section in your View. If your _Layout.cshtml has something like this: @RenderSection("scripts") Then all your Views that use that Layout must include a @section with the same name (even if the contents of the section are... Continue Reading →

Create a free website or blog at WordPress.com.

Up ↑

Create your website at WordPress.com
Get started