Server Error in '/player' Application.

Cannot find SurveyDefinitionBase with Id = 2415.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: CFS.SurveyEcoSystem.Common.Models.Exception.EntityNotFoundException`1[[CFS.SurveyEcoSystem.Common.Models.SurveyDefinitionBase, CFS.SurveyEcoSystem.Common.Models, Version=1.0.3365.0, Culture=neutral, PublicKeyToken=null]]: Cannot find SurveyDefinitionBase with Id = 2415.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[EntityNotFoundException`1: Cannot find SurveyDefinitionBase with Id = 2415.]
   CFS.SurveyEcoSystem.Player.Common.Services.DeviceService.GetSurveyById(Int32 surveyId) in c:\CFS\Sources\Test\Player\Common\Services\DeviceService.cs:103
   CFS.SurveyEcoSystem.Player.Web.MvcApplication.Common.StateService.RestoreOrStartById(Int32 id) in c:\CFS\Sources\Test\Player\Web\MvcApplication\Common\StateService.cs:35
   CFS.SurveyEcoSystem.Player.Web.PlayerControllerBase.ChangeLanguage(Int32 id, String code) in c:\CFS\Sources\Test\Player\Web\Common\PlayerControllerBase.cs:37
   lambda_method(ExecutionScope , ControllerBase , Object[] ) +105
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +236
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +31
   System.Web.Mvc.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a() +85
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +655491
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +288
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +658100
   System.Web.Mvc.Controller.ExecuteCore() +125
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +48
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +15
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +85
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +51
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +454
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +263


Version Information: Microsoft .NET Framework Version:2.0.50727.8813; ASP.NET Version:2.0.50727.8955