ArgumentException: Value cannot be null or empty. Parameter name: controllerName

Member since: 2010

Hi, the entire edit mode issues "502 – Web server received an invalid response while acting as a gateway or proxy server" and in Console I see the error below that I am posting here, in case someone came across it:

UrlReferer

https://xxx:443/yy/shell/Stores/searchproviders/?searchArea=cms%2Fpages&dojo.preventCache=1478089663843

Exception details:

ArgumentException: Value cannot be null or empty. Parameter name: controllerName

Stack trace:

[ArgumentException: Value cannot be null or empty.
Parameter name: controllerName]
   at System.Web.Mvc.HandleErrorInfo..ctor(Exception exception, String controllerName, String actionName)
   at System.Web.Mvc.HandleErrorAttribute.OnException(ExceptionContext filterContext)
   at System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList`1 filters, Exception exception)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
   at EPiServer.Shell.Services.Rest.RestControllerBase.EndExecute(IAsyncResult asyncResult)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

These are my Episerver packages:

 <package id="EPiServer.Azure" version="9.0.1" targetFramework="net452" />
  <package id="EPiServer.CMS" version="9.10.2" targetFramework="net452" />
  <package id="EPiServer.CMS.Core" version="9.10.2" targetFramework="net452" />
  <package id="EPiServer.CMS.UI" version="9.7.1" targetFramework="net452" />
  <package id="EPiServer.CMS.UI.Core" version="9.7.1" targetFramework="net452" />
  <package id="EPiServer.Forms" version="2.1.0.2" targetFramework="net452" />
  <package id="EPiServer.Framework" version="9.10.2" targetFramework="net452" />
  <package id="EPiServer.GoogleAnalytics" version="1.9.3.9000" targetFramework="net452" />
  <package id="EPiServer.Logging.Log4Net" version="2.0.0" targetFramework="net452" />
  <package id="EPiServer.Packaging" version="3.2.4" targetFramework="net452" />
  <package id="EPiServer.Packaging.UI" version="3.2.4" targetFramework="net452" />
  <package id="EPiServer.Search" version="8.0.0" targetFramework="net452" />

Any help greatly appreciated.

#171196 Edited, Nov 02, 2016 13:47
  • Member since: 2010

    Now that I run this locally, I get the following error on the same URL:

    The Type 'EPiServer.Shell.Search.SearchProviderSetting' needs to be remapped in the Dynamic Data Store, see the Errors collection for more information.
    Remapping can be done by applying the EPiServer.Data.Dynamic.EPiServerDataStoreAttribute attribute to the type,
    setting its AutomaticallyRemapStore property to true and ensuring the <episerver.dataStore><dataStore> autoRemapStores attribute in web.config is set to true (or is not defined).

    No deploys for a month, so I am not sure what could have happened to cause the mismatch in DDS and code?

    Found this old error: http://world.episerver.com/forum/developer-forum/-EPiServer-75-CMS/Thread-Container/2014/9/StoreInconsistencyException-EPiServerShellSearchSearchProviderSetting/?pageIndex=1#reply

    #171201 Nov 02, 2016 15:22
  • Member since: 2010

    OK, eventually I found this:

    http://world.episerver.com/forum/developer-forum/EPiServer-CMS-6-R2/Thread-Container/2014/5/Search-in-edit-mode-not-functional/

    Now I am applying it with recommendations from Per:

    http://world.episerver.com/forum/developer-forum/-EPiServer-75-CMS/Thread-Container/2015/4/search-in-episerver-edit-mode-throws-exception/

    Backup the DB first :)

    Let's see how it goes, but to begin with, now the query should be:

    DELETE FROM tblBigTableStoreInfo
    WHERE fkStoreId IN (
        SELECT pkId FROM tblBigTableStoreConfig
        WHERE StoreName = 'EPiServer.Shell.Search.SearchProviderSetting')

    #171203 Nov 02, 2016 15:40
  • Member since: 2010

    So, the posts partially helped me. Delete did work, but after the restart, the application did not recreate them automatically. The cmdlet EPiRemapDDSTypes does not longer exist and I ended up with a simple tool that does the rebuild that Paul Smith created: http://world.episerver.com/forum/developer-forum/EPiServer-CMS-6-R2/Thread-Container/2012/1/Where-is-the-Upgrade-EPiRemapDDSTypes-cmdlet-/

    This solved the error, but the edit mode is still so slow that it impacts the view as well and sometimes it loads and loads, but now without any logged errors. 

    Then, I disabled Episerver Projects (since we have had some issues with them previously) as well as Web Sockets and now all works really fast. I'll need to troubleshoot this further, but the error with remapping is at least fixed. 

    It would be really great to know why it happened out of the blue (at least it seems so).

    BR,
    Marija

    #171207 Nov 02, 2016 17:06
  • Member since: 2010

    This happened again, so I'd really like to know in which scenario this inconsistency occurs?

    #171664 Nov 14, 2016 17:15