c# - The model item passed into the dictionary is of type 'System.Web.Mvc.HandleErrorInfo' -


to show custom error message, wrote following simple code in controller:

if (rvalue == -1) {    throw new applicationexception("an error occured."); } 

this works fine in localhost. when installed in production iis server, gettnig error

the model item passed dictionary of type 'system.web.mvc.handleerrorinfo', dictionary requires model item of type 'worktable.models.schedulermodel.

i using c#/razor/mvc3. getting same error when throw excepton .cshtml file. how can fix this?


Comments