sitecore

Setting a deadlock victim

给你一囗甜甜゛ 提交于 2019-12-23 03:33:48
问题 We're using siteCore 6.5 and each time we start to publish items, users who are browsing the website will get server 500 errors which end up being Transaction (Process ID ##) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. How can we setup SQL Server to give priority to a specific application? We cannnot modify any queries or code so it has to be done via SQL Server (or connection string) I've seen "deadlock victim" in

Is there a way to do low-level debugging of ASP.NET PostBacks

房东的猫 提交于 2019-12-23 02:58:13
问题 I'm having a problem with a user control I'm developing which contains a ListView bound to an ICollection<T> and a DataPager . What I'm finding is that when the pager links are clicked, a PostBack is initiated and the Page_Load and Page_PreRender events are hit, but my DataPager's PagePropertiesChanging event handler method is never fired. The control I'm developing is used in a Sitecore website which may possibly be causing ClientID 's to get messed up preventing postback events to be

Filtering out page content with AJAX in Sitecore

一曲冷凌霜 提交于 2019-12-23 02:48:13
问题 I have a page in Sitecore that displays the list of clients. There's a form with two select boxes that should filter out clients not matching specified criterias. Clients list should be refreshed via AJAX everytime user changes one of the values in the form or after clicking Submit button if JS is disabled. What is the suggested approach I should take to have this working in Sitecore? I'm not sure about Sitecore part, I know how to call AJAX methods/ 回答1: I found a solution that feels a bit

Sitecore display name url does not work without language code

五迷三道 提交于 2019-12-23 01:52:42
问题 On this Sitecore website (6.5.0 rev. 120706), I have this sitecore item called XYZ. So I have http://example.com/XYZ/. I've added french localization, so using display names I now have: http://example.com/XYZ-en/ http://example.com/XYZ-fr/ The english version works well, but the french does not and resolves to 404 unless I go to the english first, click on my language switcher button first. When I click on it, I'm redirected to http://example.com/fr-CA/XYZ-fr/, which works. From then on, the

Sitecore 6.5 DMS - Registering a goal completion via the API

只谈情不闲聊 提交于 2019-12-22 18:37:50
问题 I want to register a goal/conversion on my Sitecore 6.5 site using the API rather than a 'thank-you' page. I've seen this question about how to do it Sitecore OMS - achieving a goal on a form submission but the answer relates to the API prior to Sitecore 6.5 where it was overhauled quite significantly. Has anyone done this? Or has this functionality been intentionally removed? 回答1: Have you tried something like protected void btnSubmit_Click(object sender, EventArgs e) { if (Sitecore

Unit Testing Sitecore LicenseManager

白昼怎懂夜的黑 提交于 2019-12-22 18:30:19
问题 I'm trying to unit test with the Sitecore api. I got a unit test project (MSTest) in my solution in Visual Studio. I copied the configSections, connectionStrings, appSettings, sitecore, log4net elements from my web.config to my app.config. The test I'm trying to run is: Sitecore.Context.Database = Factory.GetDatabase("master"); Item a = Sitecore.Context.Database.GetItem("/sitecore/content/Home"); Assert.IsFalse(a.HasChildren); I defined my datafolder in the app.config file and the

Unit Testing Sitecore LicenseManager

风格不统一 提交于 2019-12-22 18:30:14
问题 I'm trying to unit test with the Sitecore api. I got a unit test project (MSTest) in my solution in Visual Studio. I copied the configSections, connectionStrings, appSettings, sitecore, log4net elements from my web.config to my app.config. The test I'm trying to run is: Sitecore.Context.Database = Factory.GetDatabase("master"); Item a = Sitecore.Context.Database.GetItem("/sitecore/content/Home"); Assert.IsFalse(a.HasChildren); I defined my datafolder in the app.config file and the

Viewstate exception Validation of viewstate MAC failed

倖福魔咒の 提交于 2019-12-22 18:29:02
问题 In our log files I find the following exception. (ASP.NET, Sitecore 6.6). Any ideas why this happens? I referred to this post. My app is not in a server farm. Also this does not happen with every postback. 7776 02:11:53 ERROR Application error. Exception: System.Web.HttpException Message: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate

Viewstate exception Validation of viewstate MAC failed

ⅰ亾dé卋堺 提交于 2019-12-22 18:28:27
问题 In our log files I find the following exception. (ASP.NET, Sitecore 6.6). Any ideas why this happens? I referred to this post. My app is not in a server farm. Also this does not happen with every postback. 7776 02:11:53 ERROR Application error. Exception: System.Web.HttpException Message: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate

Hide Quick info in Sitecore through code

最后都变了- 提交于 2019-12-22 12:38:33
问题 I want to hide quick info section through code instead of unchecking the check box in Application Options dialog box. Can someone help in this? 回答1: The following code does exactly what your looking for. Add this code below: namespace Custom.Framework.SC.Extensions.Pipelines { using Sitecore.Pipelines.LoggedIn; using SC = Sitecore; /// <summary>The default quick info.</summary> public class DefaultQuickInfo : SC.Pipelines.LoggedIn.LoggedInProcessor { /// <summary>The process.</summary> ///