November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Also, I constantly receive following warnings to my Console.
Received message of type object from http://mysite.com, expected a string all.js:53
Received message of type object from http://mysite.com, expected a string all.js:53
Received message of type object from http://mysite.com, expected a string all.js:53
Ok, the error is because database has duplicate Block Type definitions. The duplicates are identical, even the GUID is the same, but they have a different TypeID. The blockType is defined only in one class.
How is this possible?
Hi Jouni
I am having the exact same issue. I have tow blocks types with the same GUID and Content Type Name but different Content TypeID. How did you manage to resolve this.
Hi Sayeed,
Try commenting out the whole duplicate ContentType definition in your code and restart the app. If memory serves, Episerver removed the invalid BlockType itself during startup. If not, try removing it by yourself. It should be possible now that it's not present in code.
Hi Jouni
I tried that. Whenever, I comment out the code for my Block Type, I get this error:
The DELETE statement conflicted with the REFERENCE constraint "FK_tblContentProperty_tblPropertyDefinition". The conflict occurred in database "dbLogicalisWebsite", table "dbo.tblContentProperty", column 'fkPropertyDefinitionID'.
I guess that's because there are existing blocks of the dupicate BlockType. Can you delete them in anyway?
I had the same error & I deleted the content in the tables that I get the error & it solved the problem.
Hi!
I just upgraded 7.0 -> 7.6 (the latest dll's) and got my site up'n running.
But I have a MAJOR issue with block and media folders, seems that I can't create a new one. If I try, then the REST call to http://mysite.com/episerver/cms/Stores/contentdata/ will fail with exception:
[ArgumentException: An item with the same key has already been added.]
System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +14648971
System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) +267
EPiServer.Cms.Shell.Json.ContentDataStoreModelConverter.GetContentType(String typeIdentifier) +392
EPiServer.Cms.Shell.Json.ContentDataStoreModelConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) +219
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue) +402
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) +790
Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) +792
EPiServer.Shell.Services.Rest.RestControllerActionInvoker.TryGetParameterValueFromRestProviders(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor, Object& value) +284
EPiServer.Shell.Services.Rest.RestControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor) +44
System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +153
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +720
EPiServer.Shell.Services.Rest.RestControllerBase.ExecuteCore() +301
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +305
EPiServer.Shell.Services.Rest.RestHttpHandler.ProcessRequest(HttpContextBase httpContext) +274
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
Has anyone idea what the duplicate entry might be?