Server Error in '/' Application.

Exception: Matching URL, Getting Company Details, Putting Reference table Cache.

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: Exception: Matching URL, Getting Company Details, Putting Reference table Cache.

Source Error:


Line 505:            catch (Exception ex)
Line 506:            {
Line 507:                throw new Exception("Exception: Matching URL, Getting Company Details, Putting Reference table Cache.");
Line 508:            }
Line 509:        }

Source File: C:\Project\RealProLive\AlbertsonRealty\Controllers\BaseController.cs    Line: 507

Stack Trace:


[Exception: Exception: Matching URL, Getting Company Details, Putting Reference table Cache.]
   AlbertsonRealty.Controllers.BaseController.ReadReferenceTable(String url) in C:\Project\RealProLive\AlbertsonRealty\Controllers\BaseController.cs:507
   AlbertsonRealty.Controllers.BaseController..ctor() in C:\Project\RealProLive\AlbertsonRealty\Controllers\BaseController.cs:69
   AlbertsonRealty.Controllers.HomeController..ctor() in C:\Project\RealProLive\AlbertsonRealty\Controllers\HomeController.cs:54
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +190

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +451
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +100
   System.Activator.CreateInstance(Type type) +12
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +75

[InvalidOperationException: An error occurred when trying to create a controller of type 'AlbertsonRealty.Controllers.HomeController'. Make sure that the controller has a parameterless public constructor.]
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +242
   System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +1583
   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) +85
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +3601
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +224
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +1366


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