title: Value cannot be null or empty. Parameter name: contentPath
body: <p>I am facing a strange issue with my MVC application, everything works fine i don't know what happened to this app now. I just update all the nuget packages.
  Getting the below error</p>
  
  <p><code>Value cannot be null or empty. Parameter name: contentPath at</code></p>
  
  <p>Error Location</p>
  
  <p><code>
  @System.Web.Optimization.Scripts.Render("~/bundles/modernizr")
  @System.Web.Optimization.Scripts.Render("~/bundles/jquery")
  </code></p>
  
  <p>i did not change anything to bundles configuration and i have all the required scripts.
  here is that complete stack trace </p>
  
  <blockquote>
    <p>Exception: System.ArgumentException: Value cannot be null or empty.
    Parameter name: contentPath at
    System.Web.Mvc.UrlHelper.GenerateContentUrl(String contentPath,
    HttpContextBase httpContext) at
    System.Web.Mvc.UrlHelper.Content(String contentPath) at
    System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite
    site, T0 arg0, T1 arg1) at
    ASP._Page_Views_Shared__AdminLayout_cshtml.Execute() in f:\Sample
    Projects\Notebook\Notebook\Views\Shared_AdminLayout.cshtml:line 23 at
    System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at
    System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at
    System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext
    pageContext, TextWriter writer, WebPageRenderingBase startPage) at
    System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext
    pageContext, TextWriter writer) at
    System.Web.WebPages.WebPageBase.&lt;>c_<em>DisplayClass7.b</em>_6(TextWriter
    writer) at System.Web.WebPages.HelperResult.WriteTo(TextWriter writer)
    at System.Web.WebPages.WebPageExecutingBase.WriteTo(TextWriter writer,
    HelperResult content) at
    System.Web.WebPages.WebPageBase.Write(HelperResult result) at
    System.Web.WebPages.WebPageBase.RenderSurrounding(String
    partialViewName, Action<code>1 body) at
    System.Web.WebPages.WebPageBase.PopContext() at
    System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext
    pageContext, TextWriter writer, WebPageRenderingBase startPage) at
    System.Web.Mvc.RazorView.RenderView(ViewContext viewContext,
    TextWriter writer, Object instance) at
    System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext
    viewContext, TextWriter writer) at
    System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
    at
    System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext
    controllerContext, ActionResult actionResult) at
    System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList</code>1
    filters, Int32 filterIndex, ResultExecutingContext preContext,
    ControllerContext controllerContext, ActionResult actionResult) at
    System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList<code>1
    filters, Int32 filterIndex, ResultExecutingContext preContext,
    ControllerContext controllerContext, ActionResult actionResult) at
    System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList</code>1
    filters, Int32 filterIndex, ResultExecutingContext preContext,
    ControllerContext controllerContext, ActionResult actionResult) at
    System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList<code>1
    filters, Int32 filterIndex, ResultExecutingContext preContext,
    ControllerContext controllerContext, ActionResult actionResult) at
    System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext
    controllerContext, IList</code>1 filters, ActionResult actionResult) at
    System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;>c_<em>DisplayClass21.&lt;>c</em>_DisplayClass2b.b_<em>1c()
    at
    System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;>c</em>_DisplayClass21.b__1e(IAsyncResult
    asyncResult)</p>
  </blockquote>