Quantcast
Channel: Forum
Viewing all 3613 articles
Browse latest View live

Help - Active Directory Role Provider - "An invalid dn syntax has been specified"

$
0
0

We're trying to evaluate EpiServer and, we are trying to get Active Directory integration up and running. I can get authenticated, and have specified an AD group to allow access to the dashboard/admin areas. However, whenever I try to search for a group to set up rights for our website, I get an error. 

An invalid dn syntax has been specified.

I have installed EPIServer 9 in a development environment. I have tried adjusting with clear LDAP insted of secure, changing the attributeMapUsername, among other things. 

Sadly, it appears several people have blogged about this very problem (for example http://world.episerver.com/blogs/Leif-Bostrom/Dates/2010/7/Exposing-the-root-cause-of-ActiveDirectoryRoleProvider-errors/ ), however each references another now defunct blog instead of actually posting the info. If anyone remembers the secret this old blog article revealed, that may help.  The blog I linked appears to think it is related to items in our domain with special characters, but I cannot control that and have no way to identify them if that is the case.

Relevent portions of web.config with account names, password, domain names replaced.

<providers>
<clear />
<add name="MultiplexingMembershipProvider" type="EPiServer.Security.MultiplexingMembershipProvider, EPiServer.Framework" provider1="SqlServerMembershipProvider" provider2="ActiveDirectoryMembershipProvider" />
<add name="SqlServerMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="EPiServerDB" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
<add name="ActiveDirectoryMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ActiveDirectoryProviderConnection"
connectionProtection="Secure"
connectionUsername="domain\account"
connectionPassword="password"
enableSearchMethods="true"
attributeMapUsername="sAMAccountName" />
</providers>
</membership>

<roleManager enabled="true" defaultProvider="MultiplexingRoleProvider" cacheRolesInCookie="true">
<providers>
<clear />
<add name="MultiplexingRoleProvider" type="EPiServer.Security.MultiplexingRoleProvider, EPiServer.Framework" provider1="SqlServerRoleProvider" provider2="ActiveDirectoryRoleProvider" providerMap1="SqlServermembershipProvider" providerMap2="ActiveDirectoryMembershipProvider" />
<add name="SqlServerRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="EPiServerDB" applicationName="/" />
<add name="ActiveDirectoryRoleProvider"
type="EPiServer.Security.ActiveDirectoryRoleProvider, EPiServer"
connectionStringName="ActiveDirectoryProviderConnection"
connectionProtection="Secure"
connectionUsername="domain\account"
connectionPassword="password"
attributeMapUsername="sAMAccountName" />
</providers>
</roleManager>

<connectionStrings>
<add name="EPiServerDB" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|EPiServerDB_b87605f4.mdf;Initial Catalog=EPiServerDB_b87605f4;Connection Timeout=60;Integrated Security=True;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
<add name="ActiveDirectoryProviderConnection" connectionString="LDAP://domain" />
</connectionStrings>

COMPLETE ERROR

Server Error in '/' Application.

An invalid dn syntax has been specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.DirectoryServices.DirectoryServicesCOMException: An invalid dn syntax has been specified.


Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[DirectoryServicesCOMException (0x80072032): An invalid dn syntax has been specified.
]
   System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +576737
   System.DirectoryServices.DirectoryEntry.Bind() +45
   System.DirectoryServices.DirectoryEntry.get_AdsObject() +40
   System.DirectoryServices.PropertyCollection.Contains(String propertyName) +26
   EPiServer.Security.AdsiDataFactory.CreateDirectoryDataFromDirectoryEntry(DirectoryEntry entry) +189
   EPiServer.Security.AdsiDataFactory.GetEntry(String distinguishedName) +173
   EPiServer.Security.ActiveDirectoryRoleProvider.GetAllRoles() +224
   EPiServer.Security.MultiplexingRoleProvider.GetAllRoles() +163
   EPiServer.Security.MembershipSecurityEntityProvider.SearchRoles(String partOfName, Int32 startIndex, Int32 maxRows, Int32& totalCount) +184
   EPiServer.Security.MembershipSecurityEntityProvider.Search(String partOfValue, String claimType) +41
   EPiServer.UI.Edit.MembershipBrowser.SearchRolesByName(String query) +143
   EPiServer.UI.Edit.MembershipBrowser.PopulateGroupsUserList(String name, String email) +160
   EPiServer.UI.Edit.MembershipBrowser.OnLoad(EventArgs e) +232
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498

Getting "Could not load file or assembly 'EPiServer.Community, Version=8.0.0.0"

$
0
0

Hi!

After having installed EPiServer Mail 9.0.0 and upgraded EPiServer CMS to the latest version (on a local test server), we're getting the following error:

While loading .NET types from "EPiServer.Mail.Sources.EPiServerCommunitySearch" the following error(s) was reported:

    - System.IO.FileNotFoundException: Could not load file or assembly 'EPiServer.Community, Version=8.0.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' or one of its dependencies. The system cannot find the file specified.
File name: 'EPiServer.Community, Version=8.0.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7

We are indeed using EPiServer Mail but not EPiServer Community. On the other hand, the two seem connected.

Any ideas on how to resolve the errror?

Additional info:

EPiServer.CMS.Core 10.3.1
EPiServer.CMS.UI 10.3.1
EPiServer.CMS.UI.Core 10.3.1
EPiServer.CommonFramework 8.0.0
EPiServer.Framework 10.3.1
EPiServer.Mail 9.0.0

//Marcus

Episerver forms - Adding custom placeholder to placeholder dropdown

$
0
0

Greetings!

I need to add a placeholder option by code without creating a new element in the form container to the "Insert placeholder" functionallity that is used when composing emails in Episerver forms.

Whats the best way to go about this?

I have tried overriding 

GetPredefinedPlaceHolderKeys()

I did this by creating a class that inherits from placeholdermanager and using the attribute below

[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton, ServiceType = typeof (IPlaceHolderManager))]

I also tried creating a [InitializableModule] that configures the IPlaceHolderManager interface to use my implementation of the PlaceHolderManager class. This works as i can stop my code and see that my implementation of the PlaceHolderManager is used. Yet no new options from my GetPredefinedPlaceHolderKeys() method.

Any help is much appreciated! :) 

Use other source to send mail from SendEmailAfterSubmissionActor

$
0
0

Hi,

 

Problem to solve:

The users have created a form and using the "built in" SendEmailAfterSubmissionActor, to send mail after submit. This senario works fine, but in this solution we need to use a webservice  to send the mail (this just applies to forms, other functions will still use smtp).

 

Part of the problem is that I still want to use the "insert placeholder" functionality from  the SendEmailAfterSubmissionActor-template.  I want to avoid to rewrite all the code for the "insert placeholder", and rely on Epi standards.

 

I tried to create a custom actor, which leaves me with the problem that I don't know how to implement "insert placeholder" functionality

 

Anyone have suggestions how to solve this problem?

Courasol image slider in EPI server

$
0
0

Hi ,

Am new to EPI.

I want to implement image slilder block with another block type data.

I have a block which store some images with some data.

i want to get images from this block and i want to display those images in courasol image slider block.

PropertyDefinitionComparer null reference in Model Sync Initialisation

$
0
0

Our client has encountered a problem where they receive a null referene expection each time the application starts. Please find the exception below. Looking at the error you can see that this is happening in the ModelSync Initialisation module. It is then tripping up on the Property Definition Comparer. 

So you'd hazard a guess that there's a mismatch between a property type in the model and what is defined in the database. This is the module that presumably updates the database with the page type definitions. Taking a high level approach we attempted to see if there were any suspicious page types or properties in the database that might have got tripped up. We also tried comparing the latest changes in the code to see if we could narrow it down that way. No luck.

So I started reflecting the code and could see there is a Load method which is loading the property from the DB that can potentially return null. This load property is then compared against the current one, without checking for null. This is the snippet from EPiServer.DataAbstraction.DefaultPropertyDefinitionRepository.Save

         PropertyDefinition otherPropertyDefinition = this.Load(propertyDefinition.ID, false);
        if (new PropertyDefinitionComparer().IsEqual(propertyDefinition, otherPropertyDefinition))
        {
            return;
        }

Somehow, we have a case where this module tries to load a property from the DB that it expects to be there. That's as far as I got though and can't seem to figure out wehre this propertyDefinition ID comes from in the first place. 

Is this a known issue? Does anyone know how we could go about finding where this troubled property is? 

[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.DataAbstraction.RuntimeModel.PropertyDefinitionComparer.IsEqual(PropertyDefinition propertyDefinition, PropertyDefinition otherPropertyDefinition) +15
   EPiServer.DataAbstraction.DefaultPropertyDefinitionRepository.Save(PropertyDefinition propertyDefinition, Boolean forceCacheClear) +201
   EPiServer.DataAbstraction.RuntimeModel.PropertyDefinitionSynchronizer.UpdatePropertyDefinition(PropertyDefinitionModel model) +212
   EPiServer.DataAbstraction.RuntimeModel.ContentTypeModelRegister`2.CommitProperties(Boolean deleteUnusedTypes) +739
   EPiServer.DataAbstraction.RuntimeModel.ContentTypeModelScanner`3.Sync(Boolean commitChanges) +150
   EPiServer.Initialization.ModelSyncInitialization.Initialize(InitializationEngine context) +454
   EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key) +63
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +719
   EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +168
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +311
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +104
   EPiServer.Global..ctor() +110



One of my pages not able to indexed by epi find

$
0
0

Hi ,

I am facing a problem regarding epi find indexing. I have observed some time one of my pages not able to index. I can not see this page by following he below step:-

Find--> OverView --> Explorer.

Since it is not indexed I am not able to find it epi find query as well.

Any one can help me to let me know why it is happening.

Thanks

Sourav

Episerver Search error

$
0
0

Getting this error when searching from edit mode.

Content with id 'xyz' is of type 'Castle.Proxies.ImageFileProxy' which does not inherit required type 'EPiServer.Core.PageData'.

Please help


See both required and optional properties in same view when creating new content

$
0
0

If I choose to create a new block using the create new link in a contentarea I get a view where I see both required and non required properties. But if I instead click the create new content button in the toolbar I only see the required properties.

It would be nice of the behaviour was the same.

I would also like that for page types but maybe it should be configurable with an attribute on the model or something like this because there tend to be a lot more properties on a page type than a block.

Upgrading to 9 from 7.5 Issues

$
0
0

Hi,

Does anyone know of a step by step guide to upgrading Episerver 7.5 and Commerce to the latest version of 9?

We are 2 days in and having all sorts of issues - missing DLLs, obsolete methods.

Is there a list of required DLLs for version 9 and where in NuGet we can get them from?

Thanks

Jon

Upgrading from 9.5 to 10.3.2

$
0
0

Hi All,

I've been trying to upgrade one of cient's instances. Every single time I run finish upgrading the db the site is starting to throw the following exception:

System.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_tblBigTable'. Cannot insert duplicate key in object 'dbo.tblBigTable'.
The statement has been terminated.
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)
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.Dynamic.Providers.Internal.DbDataStoreProvider.<>c__DisplayClass49_0.<Save>b__0()
at EPiServer.Data.Providers.Internal.SqlDatabaseHandler.<>c__DisplayClass29_0.<ExecuteTransaction>b__0()
at EPiServer.Data.Providers.Internal.SqlDatabaseHandler.<>c__DisplayClass30_0`1.<ExecuteTransaction>b__0()

or when I try to create a new page:

tem.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_tblTree'. Cannot insert duplicate key in object 'dbo.tblTree'.
   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)
   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.DataAccess.Internal.ContentSaveDB.CreateNewContent(IContent content, String currentUser)
   at EPiServer.DataAccess.Internal.ContentSaveDB.<>c__DisplayClass23_0.<SaveInternal>b__0()
   at EPiServer.Data.Providers.Internal.SqlDatabaseHandler.<>c__DisplayClass29_0.<ExecuteTransaction>b__0()
   at EPiServer.Data.Providers.Internal.SqlDatabaseHandler.<>c__DisplayClass30_0`1.<ExecuteTransaction>b__0()

Any ideas what could be an issue here?

Thanks,

Maciej

Best practice to use React

$
0
0

Hi,

I want to set up a new project using React for the frontend and I want to know what is the best practice on EPiServer + React. 

I have some ideas in mind but since I didn't implement any of them on EPiServer I like to know if you've faced any problem implementing it or if you know a better way.

In addition, I don't know how to implement on page editing :)

On another CMS, I've used ReactJS.net. Seems easy but since we had different layouts for editView and normal view we had some problems with initializing the some components so we've ended up pushing items to a javascrip list and then initializing them when page has been loaded. 

Unable to copy and then paste blocks with contentarea

$
0
0

Hi I am facing a very strange problem in Episerver CMS 10.0.2, I have a block with ContentArea ,that let editor add certain block (restricted by AllowedTypes attribute) (Nested Blocks).

Now when the editor tries to copy paste the block the following error occur "Failed to copy page 'XYZ' to 'For All Sites'.:[Importing content 15604_18609] Exception: Object reference not set to an instance of an object.".

I check into episerver.log file and got this "System.ArgumentNullException: The provided content link does not have a value.
Parameter name: contentLink".

What happened after the error is the main block is created but no blocks inside ContentArea.

The project i am working on contains have 6 different blocks buld on same concept (block with contentarea) throwing the same error. This feature is very much need as I want to copy/pastes pages and do minor changes in content. Currently this is failing and frustrating as hell.

Any one have any idea why this is happening and what could be a solution for it??

how we can personalize any page by visitor group in epi server

$
0
0

Hi,

Do we have any option to personalize the pages by visitor group  which we can do for block.

Can any one reply me on tis please.

Thanks

Sourav

CustomerContext.Current not updated on logout

$
0
0

Hey there.

Using Forms authentication.

When a customer logs in, the CustomerContext.Current is updated immediately (so we get the correct cart by providing CustomerContextFacade.CurrentContactId), but when he logs out, the CustomerContext.Current is not updated immediately so I still get the cart as if he was logged in...

We logout via FormsAuthentication.SignOut();

Best regards

Carsten

Episerver Commerce 10.1


Top level category model mismatch error

$
0
0

Hey All,

We're using EpiServer 9.8 and getting a strange error when loading our top-level category page.  What's weird about it is if you refresh the page, it works just fine and the error cannot be reproduced again until you refresh the app pool in IIS.  The error we're getting is:

"The routed data is of type 'CMS.Models.Commerce.Catalog.CategoryContentType' and the binding context data 'currentPage' is of type 'CMS.Models.Commerce.Catalog.CategoryContentType', neither of which matches the requested type 'CMS.Models.Pages.SitePageData'."

Stack trace:

[TypeMismatchException: The routed data is of type 'CMS.Models.Commerce.Catalog.CategoryContentType' and the binding context data 'currentPage' is of type 'CMS.Models.Commerce.Catalog.CategoryContentType', neither of which matches the requested type 'CMS.Models.Pages.SitePageData'.]
EPiServer.Web.Mvc.ContentDataModelBinder.BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) +769
System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor) +296
System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +105
System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__1e(AsyncCallback asyncCallback, Object asyncState) +445
System.Web.Mvc.Async.WrappedAsyncResult`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +129
System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeAction(ControllerContext controllerContext, String actionName, AsyncCallback callback, Object state) +302
System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__17(AsyncCallback asyncCallback, Object asyncState) +30
System.Web.Mvc.Async.WrappedAsyncResult`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +129
System.Web.Mvc.Controller.BeginExecuteCore(AsyncCallback callback, Object state) +338
System.Web.Mvc.Async.WrappedAsyncResult`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +129
System.Web.Mvc.Controller.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +316
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +15
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__2(AsyncCallback asyncCallback, Object asyncState) +71
System.Web.Mvc.Async.WrappedAsyncResult`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +129
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +251
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +48
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +103
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

And here is our code for the controller's ActionResult:

namespace CMS.Controllers.Commerce
{
    public class CategoryController : ContentController<CategoryContentType>
    {
        public ActionResult Index(CategoryContentType currentContent, SitePageData currentPage)
        {
            CommerceCoreRepository CommerceData = new CommerceCoreRepository(Global.DatabaseConnection.EOShared);
            CultureInfo currentCulture = ContentLanguage.PreferredCulture;
            string languageCode = currentCulture.Name;
            ViewBag.CurrentPage = currentPage;
            CategoryModel model = new CategoryModel()
            {
                Breadcrumb = new BreadcrumbModel(currentContent),
                Category = currentContent
            };
            return View("/Views/Commerce/Product/Category/Index.cshtml", model);
        }
}
}


Any insight or experience with this would be greatly appreciated, we're a bit stumped.

Thanks!

John

Calling Cart.AcceptChanges() in Session_Start

$
0
0

I am seeing this error in my logs:

..

Message: Mediachase.Commerce.Orders.Exceptions.OrderException: A cart with same CustomerId, Name, and MarketId already exist. Creating duplicated cart is not allowed
   at Mediachase.Commerce.Storage.MetaStorageBase.ProcessInsertUpdateResults(DataResult result)
   at Mediachase.Commerce.Storage.MetaStorageBase.AcceptChanges(MetaDataContext context, Boolean saveSystem)
   at Mediachase.Commerce.Orders.OrderGroup.AcceptChanges()
   at Mediachase.Commerce.Orders.Cart.AcceptChanges()
   at GA.Web.UI.Global.Session_Start(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Web.SessionState.SessionStateModule.CompleteAcquireState()
   at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)
   at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

...

I notice that it is coming from Session_Start.  The error seems to show that Session_Start is calling Cart.AcceptChanges() directly.  But this surprises me, because I do not directly call Cart.AcceptChanges().

(I DO have some other objects in Session_Start that can indirectly call Cart.AcceptChanges() through nested function calls.. but, the stack trace shows that Cart.AcceptChanges() is being called directly.)

So I'm a bit confused about what could be happening here.. any ideas?

EDIT:

I'm using EPiServer Commerce Framework
Version: 9.24 (build: 1)

Modifying XForms Markup

$
0
0

Hi

I need to modify the markup for an Xform in my site to remove all of the table layouts. I have done some reading and everyone says to override the ControllsCreated event. A good article about it here:

http://www.frederikvig.com/2010/11/semantic-markup-with-episerver-xforms/

This solution and all of the others I have looked at are for version 6 and mention about updating the ControlsCreated method in the Global.asax file. This no longer exists on a version 7 MVC site. Does anyone know how to implement this for 7?

Many thanks
Dave

"Ambiguous match found" when re-indexing website content

$
0
0

Hello,

We’re using Episerver Find to index the content of a website.

After backstaging the production database to our local dev server I tried to re-index the website content to our dev instance of Episerver Find using the scheduled job (manually).

When trying to re-index the scheduled job throws several exceptions:

Indexing job [mysite.dev] [content]: Reindexing completed. ExecutionTime: 3 minutes 2 seconds Number of contents indexed: 1931 Number of content errors: 0 Number of batch errors: 5
WIN-L6B2S8QVFBU: An exception occurred while indexing (Batch): Ambiguous match found. (see log for more information)
WIN-L6B2S8QVFBU: An exception occurred while indexing (Batch): The request was aborted: The request was canceled. (see log for more information)
WIN-L6B2S8QVFBU: An exception occurred while indexing (Batch): Ambiguous match found. (see log for more information)
WIN-L6B2S8QVFBU: An exception occurred while indexing (Batch): Ambiguous match found. (see log for more information)
WIN-L6B2S8QVFBU: An exception occurred while indexing (Batch): The request was aborted: The request was canceled. (see log for more information)
Indexing job [Global assets and other data] [content]: Reindexing completed. ExecutionTime: 0 minutes 2 seconds Number of contents indexed: 0

When I checked the log there are several occurences of the two following errors:

2016-01-27 12:21:19,094 [9] WARN EPiServer.Web.PermanentLinkMapper: Failed to resolve 'http://Check out this link on Instagram'
System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.UriBuilder..ctor(String uri)
at EPiServer.UrlBuilder.Init(String url)
at EPiServer.Web.PermanentLinkMapper.TryToPermanent(String url, String& permanentUrl)
System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.UriBuilder..ctor(String uri)
at EPiServer.UrlBuilder.Init(String url)
at EPiServer.Web.PermanentLinkMapper.TryToPermanent(String url, String& permanentUrl)


and

2016-01-27 12:21:31,863 [9] ERROR EPiServer.Find.Cms.ContentIndexer: MyComp: An exception occurred while indexing (Batch): Ambiguous match found.
System.Reflection.AmbiguousMatchException: Ambiguous match found.
at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
at System.Type.GetProperty(String name)
at EPiServer.Find.Cms.ContentExtensions.<GetSearchableProperties>d__10.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at EPiServer.Find.Cms.ContentExtensions.SearchText(IContentData contentData)
at EPiServer.Find.DelegateValueProvider`2.GetValue(Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at EPiServer.Find.Api.BulkActionConverter.WriteJson(JsonWriter writer, Object value, JsonSerializer serializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable(JsonWriter writer, JsonConverter converter, Object value, JsonContract contract, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at EPiServer.Find.Json.Serializer.SerializeToTextWriter(JsonSerializer serializer, Object value, TextWriter textWriter)
at EPiServer.Find.Json.Serializer.SerializeObjectsToJsonRequest(JsonSerializer serializer, IJsonRequest jsonRequest, IEnumerable values)
at EPiServer.Find.Api.BulkCommand.Execute()
at EPiServer.Find.Cms.ContentIndexer.IndexWithRetry(IContent[] contents, Int32 maxRetries)
at EPiServer.Find.Cms.ContentIndexer.Index(IEnumerable`1 content, IndexOptions options)
at EPiServer.Find.Cms.ContentIndexer.<>c__DisplayClass19.<ReIndex>b__e(IEnumerable`1 currentBatch, ParallelLoopState loopstate)


The first error seems due to a bad link url format (possibly by the editor) but since there's no content id available I don't know how to find this so I can fix it.

The second error I guess is due to json conversion going wrong somewhere, but I'm kind of stumped on this one.

As a result of this no content is indexed.

Any ideas on how to solve this?

Best regards,

Jesper

OData compatible for content repository

$
0
0

I know there are some REST compatible packages are there but any know any  OData compatible package which you can expose Contents? So you can query contents using OData? This would be really helpful when you expose content to third-party or using external tool.

Aria

Viewing all 3613 articles
Browse latest View live