Server Error in '/' Application.

Album Feis-ve-Vidni does not exists.

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: System.Exception: Album Feis-ve-Vidni does not exists.

Source Error:


Line 106:			var album = photogalerie.SingleOrDefault(item => item.UrlName == albumName);
Line 107:			if(album==null)
Line 108:				throw new Exception("Album "+albumName+" does not exists.");
Line 109:			return View(new FotogalerieDetailModel()
Line 110:			            {

Source File: d:\inetpub\webs\10152405_web\www\App_Code\Controllers\DefaultController.cs    Line: 108

Stack Trace:


[Exception: Album Feis-ve-Vidni does not exists.]
   Controllers.DefaultController.FotogalerieDetail(String albumName) in d:\inetpub\webs\10152405_web\www\App_Code\Controllers\DefaultController.cs:108
   lambda_method(Closure , ControllerBase , Object[] ) +103
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +194
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
   System.Web.Mvc.<>c__DisplayClassa.<InvokeActionMethodWithFilters>b__7() +56
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +256
   System.Web.Mvc.<>c__DisplayClassc.<InvokeActionMethodWithFilters>b__9() +22
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +256
   System.Web.Mvc.<>c__DisplayClassc.<InvokeActionMethodWithFilters>b__9() +22
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +192
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +352
   System.Web.Mvc.Controller.ExecuteCore() +193
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +28
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +129
   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +43
   System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +10
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +814
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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