Quantcast
Channel: Customized Commerce 13 and earlier versions
Viewing all 9642 articles
Browse latest View live

Failed to read cache key

$
0
0

I am investigating an issue where data is not updated as part of an import job. I have confirmed that logic is correct, the problem seem to be that product is not being saved. 

In the log files I can see error messages like "Failed to Read cacheKey" and "System.Data.SqlClient.SqlException: Execution Timeout Expired." - see sample of full log message below.

We are running the site in Azure and using version 11.10.6 of Episerver.CMS.Core.

I know there were issues related to Episerver caching and version .NET 4.7 (ref https://vimvq1987.com/episerver-caching-issue-net-4-7/), but those should not apply since we are running v 11.10.6.

The import processes quite a huge amount of updates and works in batches of 24 which is processed in parallell. 

2019-03-20 02:20:56,349 [15] ERROR EPiServer.Framework.Cache.ObjectInstanceCacheExtensions: Failed to Read cacheKey = 'EP:ECF:Version:85016'
System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)
at Mediachase.Data.Provider.SqlDataProvider.ExecuteNonExec(DataCommand command)
at Mediachase.MetaDataPlus.Common.DBHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, Int32 commandTimeout, DataParameter[] commandParameters)
at EPiServer.Commerce.Catalog.DataAccess.CatalogContentVersionDB.UpdateContentVersion(List`1 mappingData, DataTable workIdMapping, Boolean publishAction)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.CreateContentVersion(CatalogContentBase content, String currentUser, Boolean publishAction, Boolean skipSetCommonDraft)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.EnsureDraftsInAllLanguages(VersionCollection versionCollection, ContentReference contentLink)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.GetListFromDb(ContentReference contentLink)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.<>c__DisplayClass36_0.<GetContentVersions>b__0()
at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.GetContentVersions(ContentReference contentLink)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.<>c__DisplayClass23_0.<List>b__0()
at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)
ClientConnectionId:46c399d9-4ba2-405d-90f8-6b6cd197f407
Error Number:-2,State:0,Class:11
ClientConnectionId before routing:bd5514a4-0bf2-48e8-87fb-eaa7858584d3
Routing Destination:a5c98a899196.tr31.westeurope1-a.worker.database.windows.net,11119
System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)
at Mediachase.Data.Provider.SqlDataProvider.ExecuteNonExec(DataCommand command)
at Mediachase.MetaDataPlus.Common.DBHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, Int32 commandTimeout, DataParameter[] commandParameters)
at EPiServer.Commerce.Catalog.DataAccess.CatalogContentVersionDB.UpdateContentVersion(List`1 mappingData, DataTable workIdMapping, Boolean publishAction)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.CreateContentVersion(CatalogContentBase content, String currentUser, Boolean publishAction, Boolean skipSetCommonDraft)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.EnsureDraftsInAllLanguages(VersionCollection versionCollection, ContentReference contentLink)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.GetListFromDb(ContentReference contentLink)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.<>c__DisplayClass36_0.<GetContentVersions>b__0()
at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.GetContentVersions(ContentReference contentLink)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.<>c__DisplayClass23_0.<List>b__0()
at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)
ClientConnectionId:46c399d9-4ba2-405d-90f8-6b6cd197f407

2019-03-20 02:20:57,099 [15] ERROR lambda_method: One or more errors occurred.
System.AggregateException: One or more errors occurred. ---> System.Data.SqlClient.SqlException: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out
--- End of inner exception stack trace ---
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)
at Mediachase.Data.Provider.SqlDataProvider.ExecuteNonExec(DataCommand command)
at Mediachase.MetaDataPlus.Common.DBHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, Int32 commandTimeout, DataParameter[] commandParameters)
at EPiServer.Commerce.Catalog.DataAccess.CatalogContentVersionDB.UpdateContentVersion(List`1 mappingData, DataTable workIdMapping, Boolean publishAction)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.CreateContentVersion(CatalogContentBase content, String currentUser, Boolean publishAction, Boolean skipSetCommonDraft)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.EnsureDraftsInAllLanguages(VersionCollection versionCollection, ContentReference contentLink)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.GetListFromDb(ContentReference contentLink)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.<>c__DisplayClass36_0.<GetContentVersions>b__0()
at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.GetContentVersions(ContentReference contentLink)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.<>c__DisplayClass23_0.<List>b__0()
at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)
at EPiServer.Commerce.Catalog.Provider.CatalogContentVersionStore.List(VersionFilter filter, Int32 startIndex, Int32 maxRows, Int32& totalCount)
at EPiServer.Core.IContentVersionRepositoryExtensions.List(IContentVersionRepository contentVersionRepository, ContentReference contentLink)
at EPiServer.Find.Commerce.CatalogEventIndexer.GetAllLanguageVersions(IContent content)
at EPiServer.Find.Commerce.CatalogEventIndexer.IndexContentInAllLanguages(IContent content)
at EPiServer.Find.Commerce.CatalogContentEventListener.IndexContentsIfNeeded(IEnumerable`1 contents, Action`1 indexAction, IDictionary`2 cachedReindexContentOnEventForType, Func`1 isReindexingContentOnUpdates)
at EPiServer.Find.Commerce.CatalogContentEventListener.IndexContentsIfNeeded(IEnumerable`1 contentLinks, Action`1 indexAction)
at EPiServer.Find.Commerce.CatalogContentEventListener.CatalogEventUpdated(Object sender, EventNotificationEventArgs e)
at EPiServer.Events.Clients.Event.Raise(Guid raiserId, Object param, EventRaiseOption raiseOption)
at Mediachase.Commerce.Catalog.Events.CatalogEventBroadcaster.RaiseEvent(CatalogContentUpdateEventArgs e)
at Mediachase.Commerce.Catalog.Events.CatalogEventBroadcaster.SendEntryUpdateEvent(EntryEventArgs args)
at Mediachase.Commerce.Catalog.EventContext.EntryEventHandler.Invoke(Object sender, EntryEventArgs e)
at Mediachase.Commerce.Catalog.EventContext.RaiseEntryUpdatedEvent(CatalogEntryDto sender, EntryEventArgs args)
at Mediachase.Data.Provider.TransactionScope.ExecuteActions(IEnumerable`1 actions)
--- End of inner exception stack trace ---
at Mediachase.Data.Provider.TransactionScope.ExecuteActions(IEnumerable`1 actions)
at Mediachase.Data.Provider.TransactionScope.ThreadStaticTransactionScope.Commit()
at Mediachase.Data.Provider.TransactionScope.Complete()
at EPiServer.Commerce.Catalog.Provider.CatalogContentCommitterHandler.SaveVersionInternal(CatalogContentBase content, SaveAction action, String currentUser)
at EPiServer.Commerce.Catalog.Provider.CatalogContentCommitterHandler.Save(CatalogContentBase content, SaveAction action, String currentUser)
at EPiServer.Commerce.Catalog.Provider.CatalogContentProvider.Save(IContent content, SaveAction action)
at EPiServer.Core.Internal.DefaultContentRepository.Save(IContent content, SaveAction action, AccessLevel access)

The same folder selected in asset pane Episerver CMS

$
0
0

It would be nice if the same folder for Blocks and Media could be selected in the asset pane. It is easier to switch between them.

Reloading Custom Data From Find Index

$
0
0

Hi guys, for a very complex search we've been indexing some custom .NET objects which we need to search on and to reload back as .NET objects. The searching works fine using the following guide https://world.episerver.com/documentation/developer-guides/find/NET-Client-API/Customizing-serialization/Including-fields/ but we are having problems re-loading the data. As an example I've thrown a simple example up on Alloy for replication.

Firstly on the ArticlePage type I have added the following extra properties/methods. The GetSomeField() should just be returning the standard Name field back.

[Ignore]
public string FindTestField { get; set; }
public string GetSomeField()
{
   return Name;
}
public void SetSomeField(string value)
{
   FindTestField = value;
}

We then have an initilization module with the following simple code

[ModuleDependency(typeof(IndexingModule))]
public class FindInitialization : IInitializableModule
{
   /// <inheritdoc />
   public void Initialize(InitializationEngine context)
   {
      SearchClient.Instance.Conventions
      .ForInstancesOf<ArticlePage>()
      .IncludeField(x => x.GetSomeField(),(x, value) => x.SetSomeField(value));
   }
   /// <inheritdoc />
   public void Uninitialize(InitializationEngine context)
   {
   }
}

Episerver Find is indexing this GetSomeField as expected with the correct data, however when doing a search with the following code

var eventPages = SearchClient.Instance.Search<ArticlePage>().GetContentResult();
var firstaPage = eventPages.Items.First();
var findFullname = firstaPage.FindTestField;

The findFullname variable is null? This is a simple example of what we're trying to do, in our real solution this is an IEnumerable of .NET objects but how to we re-serialize the objects back somewhere in the model. I've been looking at the code for the IncludeFieldCustom and Episerver own indexing of objects and can't figure it out.

Using OpenId Connect (Identity Server) - ISynchronizingUserService - synched claims are case insensitive - how to delete previous synched role

$
0
0

We are using IdentityServer for authentication and authorization into EpiServer.

The problem we have is related to the use case where we need to change ACL for a specific content during importation job where we create/update organization pages from another system (API service). 

We use organization names for role/group names (which, it seems, wasn't a good candidate), where logged in user have editor rights, and that works fine.

Now we have a specific case where organization name has to be changed in the API system, and we need to update ACL for content with another group/role org name. This works as long as the previous group name is totally different. But we had another case where they needed to change only capital letter after being already synched once with EpiServer. And here we have a problem.

If we clear and set IsInherited = false to the content ACL and then add new entries with the new organization name (which is only different by one uppercase letter because of writing convention) and save it, the system picks up the previous group/role org name and ignores the new one (it wasn't created and can't be picked up in Admin -> Set Access Rights -> Add groups).

When some user logs in, it doesn't have permissions as role checking is case sensitive.

But ISynchronizingUserService sync role claims as case insensitive and doesn't allow another entry in tblSynchedUserRole (because of the column LoweredRoleName).

I have found ISynchronizedUsersRepository but there is no method for synced roles deletion.

I want to delete a previous synced organizationName role in order to be able to insert (sync) another one which is case sensitive, in order to be able to assign it as a group/role to the content ACL.

Is there an EpiServer way of programmatically deleting role name from tblSynchedUserRole?

 

Thanks

Modules routing returns blank output, wtf!

$
0
0

Hello Experts,

Latest version 11.12 CMS

I´ve set up a new site but no modules routes are working.

not /EPiServer/Cms/VisitorGroups

not /EPiServer/EPiServer.DeveloperTools/IOC

not /EPiServer/EPiServer.GoogleAnalytics/Administration

Just blank no html output

I do get to login before though

What can it be?

I do use feature folder setup, but thats just a simple change in DefaultPageController.

Forms submit - 6 second or more delay

$
0
0

We have a client using Episerver Forms (4.23). When submitting the form there is a good six second minimum delay before the Thank You page loads. 

They are using the Marketing Connector for Salesforce. Is this just how long it takes? Is there any way to improve the experience outside of a loading gif?

Cast BlockProxy to Block

$
0
0

HI! I am trying to somehow get MyBlock class instance from PropertyData.

I have tried:

propertyData.Value as MyBlock;

ProxyUtil.GetUnproxiedInstance( propertyData.Value);

((IProxyTargetAccessor) propertyData.Value).DynProxyGetTarget();

((MyBlock)propertyData.Value).CreateWritableClone ( );

They all return MyBlockProxy!

ProxyUtil.GetUnproxiedType ( propertyData.Value ); gives the correct type (MyBlock)

Is there a way to do this?

Comments for content - better visibility for commented content

$
0
0

Comments for content should be more visible if the content is commented. If the comment-icon would change color (to for instance green) if the content got comments, all editors can easily know that there are something they should read about the content before they change it. 

Uncommented content:

Commented content:


Separate admin login when using OpenIdConnect

$
0
0

Hi!

Is it possible to have some kind of separate login for admin users in episerver, when using OpenIdConnect? We only want the OpenIdConnect for the end users, not editors or admins.

What is the role/usage of Category in Content tab of CMS?

$
0
0

What is the role/usage of Category in Content tab of CMS?

SelectionFacroty not working

$
0
0

I have a page which has IList<Fruit> property in CMS. My fruit class has Benefit property. User can add Benefits from the same page in different tabs and those saved benefits are displayed in dropdown of the page. So, I used ISelectionFactory with SelectMany and tried to retrieve the saved benefits to dropdown. But metadata.FindOwnerContent() is giving null in GetSelections method of ISelectionFactory. This does not happen when I use Benefit property directly on the page. I need to identify page, to retrieve the saved benefits so that I can assign one of them to fruit.

In short,

Page has Ilist<fruit> and blocks of benefits.
Fruit class has Benefit property.

I want to map fruits with benefits and benefits itself is created in this page as block type. I could not find page reference or content link  id to retrieve benefits in this case.

HttpCompileException after Episerver CMS Upgrade to 11.11.2

$
0
0

I'm trying to upgrade Episerver CMS from a 10 version to 11.11.2

I get the following error:

Exception type: HttpCompileException
Exception message: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\46809e2a\a35e6e63\App_Code.g_9gytap.0.cs(19): error CS1519: Invalid token ',' in class, struct, or interface member declaration

In the file mentioned this is the code:

public class ProfileCommon : System.Web.Profile.ProfileBase {
    public virtual EPiServer.Personalization.GuiSettings, EPiServer EditTreeSettings {
        get {
            return ((EPiServer.Personalization.GuiSettings, EPiServer)(this.GetPropertyValue("EditTreeSettings")));
        }
        set {
            this.SetPropertyValue("EditTreeSettings", value);
        }
    }

The comma between EPiServer.Personalization.GuiSettings and EPiServer EditTreeSettings seems to be a problem.

This is Episerver code, so I can't do anything about it.

Is there a solution for this problem?

John Ligtenberg

PriceFilter returning wrong pricing

$
0
0

Hi,

I am using Commerce 12.15 and creating a price filter to pass to GetPrices method of PriceServiceDatabase class which implements IPriceService. 

Below is the price filter I create, so now I am expecting that this will give me prices which have Currency: USD, CustomerPricing: AllCustomers and no price code and where the minimum quantity is 1.

PriceFilter filter = new PriceFilter()
{
Currencies = new Currency[] { new Currency("USD") },
CustomerPricing = new CustomerPricing[]
{
new CustomerPricing(CustomerPricing.PriceType.AllCustomers, string.Empty)
},
Quantity = 1
};

But upon passing this to GetPrices, it gives me back a price whose Minimum Quantity is 0. Also, this happens when I dont have a price code.

Below is a screen shot for reference:

https://www.screencast.com/t/cwdHzPQomULX

I have the filter and the prices returned back from the call. 

Episerver DXC support for HTTP/2

$
0
0

I have seen some significant performance gains using HTTP/2 in other Web Applications so I'd like to know;

  1. Does Episerver officially support DXC environments running HTTP/2? Are there plans for this become the default setting in DXC? 
  2. Has anyone has tried to make use of this, if so what issues if any did you encounter?

We've been able to use HTTP/2 in on-premise IIS for a while. But it was only last year that Azure App Services announced support for HTTP/2
https://blogs.msdn.microsoft.com/appserviceteam/2018/04/13/announcing-http2-support-in-azure-app-service/

I can see in the Azure Portal that all our Episerver DXC clients Integration environments are set to HTTP Version 1.1. 

HTTP Version


There's a lot to like about HTTP/2. I've seen some huge benefits by making use of its single TCP/IP connection and requesting in parallel. So I'm keen to know if I can start making use of this in DXC.

What is the role of AllowMultiple=true/false?

$
0
0

What is the role of AllowMultiple when we already inherit from SelectOneAttribute?

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]publicclass LanguageSelectionAttribute : SelectOneAttribute
{publicoverride Type SelectionFactoryType
    {
        get
        {returntypeof(LanguageSelectionFactory);
        }
        set
        {base.SelectionFactoryType = value;
        }
    }
}

Copying production database to test server

$
0
0

We recently decided to copy our production databse to our test server, to get more accurate test data and also the content that was created in production.

We made a backup of CMS, commerce and our custom database.

In the cms database we change the host name in the tblHostDefinition table and SiteUrl in tblSiteDefinition table to correct url.
Then we delete some old content.

In the commerce database we scramle contacts and addresses, removing ordergroup with ecf_OrderGroup_Delete if they does not belong to the development team or customer.
We also delete aspnet_UsersInRoles, aspnet_Membership, aspnet_Profile and aspnet_Users if they does not belong to us, ApplicationLog older than 30 days and everyting in ecfVersion, ecfVersionAsset, ecfVersionCatalog, ecfVersionVariation and ecfVersionProperty.

After this we get really strange issues with the environment, For example 

ContentLoader.Service.Get<StartPage>(ContentReference.StartPage)

This one will crash since all the data in ContentReference.StartPage will be empty (ID = 0, etc.. ). 


Or that we could not navigate to 5 of the 6 concept starting pages we have

First afer that I went into this in edit mode and made a new publish I could navigate to it.

I know this is not alot of information, but have anyone experienced the same issue or know what it could be?

Deleting media in PIM does not properly remove the image from Epi CMS

$
0
0

Hi there,

Adding images and deleting images works fine in PIM. But when I go back to the item the media belongs to in the CMS I can see the image is no longer there but the row for it is still there with 'media not found'. I have tried a few things but none have helped so far. Anyone know how to get around this?

Thanks, James

What is EPiServer.Packaging.Converter?

Form File Upload not working

$
0
0

(this has to be a simple question....)

I have a form with a file upload.  I submit the form with the uploaded file (txt, xls, xlsx) and the form submits, but the file is not avialable under the form submissions?  The event log shows no errors.    I think this might have something to do with GenericMediaTypes not being associated with the project but I am not sure how to check this.

Ideas on how to troubleshoot and fix this?

CMS 'All Properties' (On-Page Editing) mode is not opening . Giving JS error "Unexpected token"

$
0
0

Hi There,

After upgrading CMS to 10.8 from 7.5 , everything is working fine except CMS edit mode is not loading. When we are trying to  open "All Properties" (edit-mode) for updating any content  from CMS , it is not loading and giving some JS errors:

 Uncaught SyntaxError: Unexpected token <    epi.cms.contentediting.editors.selectioneditor.js:1 >
 Uncaught SyntaxError: Unexpected token <    epi.cms.contentediting.editors.contentareaeditor.js:1 > > >

Viewing all 9642 articles
Browse latest View live