Server Error in '/' Application.

Value cannot be null.
Parameter name: source

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.ArgumentNullException: Value cannot be null.
Parameter name: source

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:


[ArgumentNullException: Value cannot be null.
Parameter name: source]
   System.Linq.Enumerable.Single(IEnumerable`1 source, Func`2 predicate) +374
   Services.Travelhub.HotelBookingService..ctor(IPortalService portalService) in G:\Project\PortalHotelsOrg\Services\Travelhub\HotelBookingService.cs:22
   lambda_method(Closure , IBuildSession , IContext ) +224

[StructureMapBuildException: Error while building type Services.Travelhub.HotelBookingService.  See the inner exception for details
1.) new HotelBookingService(*Default of IPortalService*)
2.) Services.Travelhub.HotelBookingService
3.) Instance of Services.Travelhub.IHotelBookingService (Services.Travelhub.HotelBookingService)
4.) new HotelController(*Default of IEntityService*, *Default of IHotelService*, *Default of IHotelBookingService*, *Default of IAuthorizeService*, *Default of INotificationService*)
5.) Ui.Controllers.HotelController
6.) Instance of Ui.Controllers.HotelController
7.) Container.GetInstance(Ui.Controllers.HotelController)
]
   lambda_method(Closure , IBuildSession , IContext ) +1320
   StructureMap.Building.BuildPlan.Build(IBuildSession session, IContext context) in c:\BuildAgent\work\996e173a8ceccdca\src\StructureMap\Building\BuildPlan.cs:151
   StructureMap.SessionCache.GetObject(Type pluginType, Instance instance, ILifecycle lifecycle) in c:\BuildAgent\work\996e173a8ceccdca\src\StructureMap\SessionCache.cs:88
   StructureMap.SessionCache.GetDefault(Type pluginType, IPipelineGraph pipelineGraph) in c:\BuildAgent\work\996e173a8ceccdca\src\StructureMap\SessionCache.cs:66
   StructureMap.Container.GetInstance(Type pluginType) in c:\BuildAgent\work\996e173a8ceccdca\src\StructureMap\Container.cs:335
   Ui.StructureMapControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) in G:\Project\PortalHotelsOrg\WhiteLabel\Global.asax.cs:30
   System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +103
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +263
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +77
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1020
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128


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