SaaS CMS has officially launched! Learn more now.

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


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:



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:


Any help greatly appreciated.

Edited, Nov 02, 2016 13:47

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:

Nov 02, 2016 15:22

OK, eventually I found this:

Now I am applying it with recommendations from Per:

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')
Nov 02, 2016 15:40

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:

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).


Nov 02, 2016 17:06
<p>This happened again, so I'd really like to know&nbsp;in which scenario this inconsistency occurs?</p>
Nov 14, 2016 17:15
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.