Skip to main content

Posts

Enable Sitecore Item API

Q: How to enable Sitecore Item API in existing Sitecore project? Solution:  These are few simple steps to follow - Goto Website -> App_Config -> Sitecore -> Services.Client folder Open Sitecore.Services.Client.config file and make below changes - Set the value of Sitecore.Services.AllowAnonymousUser as ' true ' <setting name="Sitecore.Services.AllowAnonymousUser" value="true" />  Set the value of Sitecore.Services.SecurityPolicy to ' Sitecore.Services.Infrastructure.Web.Http.Security.ServicesOnPolicy ' <setting name="Sitecore.Services.SecurityPolicy" value="Sitecore.Services.Infrastructure.Web.Http.Security.ServicesOnPolicy, Sitecore.Services.Infrastructure" /> Open Browser and access this URL https://<Your Sitecore Instance>/sitecore/api/ssc/item/<Your_Item_Id> You should get Item information as JSON response.  Post your comments, if this blog helped you.

C#, Visual Studio(VS), .Net & CLR version information

C#, Visual Studio(VS), .Net & CLR version along with release date C# version VS version .Net version CLR version Release date 1.0 2002 1.0 1.0 Feb 2002 1.2 2003 1.1 1.1 Apr 2003 2.0 2005 2.0 3.0 2.0 2.0 Nov 2005 Nov 2006 3.0 2008 3.5 2.0 Nov 2007 4.0 2010 4.0 4.0 Apr 2010 5.0 2012 4.5 4.0 Aug 2012 5.0 2013 4.5.1 4.5.2 4.0 4.0 Oct 2013 May 2014 6.0 2015 4.6 4.6.1 4.6.2 4.0 4.0 4.0 July 2015 Nov 2015 Aufg 2016 7.0 7.1 7.2 7.3 2017 4.7 4.7.1 4.7.2 4.0 4.0 4.0 Mar 2017 May 2017 Aug 2017 Oct 2017 Dec 2017 Apr 2018 May 2018 8.0 2019 4.8 4.0 Apr 2019 Disclaimer - The above data is collected from different websites and best of knowledge. Blog does not have any liability to any descripency.  

Integrating AppDynamics with asp.net core

AppDynamics provide information about your application/server at single place. Application performance, integration with other systems, business transactions,  user load and exceptions, AppDynamics provide all these information under one dashboard. Integrating AppDynamics with asp.net core is very simple. Here are the steps to integrate it with your asp.net core application. 1. Download AppDynamics agent libraries from AppDynamics Download Center 2. Extract it on Linux machine and copy the extracted files in your website folder. These are the extracted files -  AppDynamics.Agent.netstandard.dll AppDynamicsConfig.json.template libappdprofiler .so 3. Rename 'AppDynamicsConfig.json.template' to 'AppDynamicsConfig.json' 4. Make the required changes as per your AppDynamics Controller setup ( assuming your AppDynamics Controller is already setup and running ) If you are using .json file, please include below lines in your AppDynamicsConfig.j...

Verify your website accessibility

Web accessibility is the practice of ensuring that your website is interactive and accessible to even people with disabilities. Many countries provide laws protecting the rights of disabled persons, therefore it becomes really important to design and develop the website in compliance with those laws and follow web accessibility as de-facto. The blog helps to test your web accessibility. 1. Open chrome browser and browse any website. Open developer tools and click on Audit tab. Scroll to Audits section and check the 'Accessibility' option. Web accessibility check in Chrome browser 2. Once you click on 'Run audits' button, you will see a message( as shown below ). Don't worry, auditing has started. Starting auditing of website 3. Once audit is completed, it will generate audit report( as shown below ) Audit report for web accessibility Have a great day !!

Creating and Installing Sitecore Packages

Creating and Installng Sitecore Package Create Sitecore Package 1. Open Sitecore( from where you would like to create package ) and click on Package Designer 2. Once Package designer panel is opened, click on Item statically and provide all required details as shown below 3. After clicking on 'Item statically' option, a popup will open. Choose selected items and click on 'Add with SubItems' or 'Add Items' buttons     a. clicking on 'Add Item' will only include selected item and not child items     b. clicking on 'Add with subitems' will include selected Item and its child items 4. Click on 'Generate Zip' option which will generate the package in .zip format 5. Download the .zip file of sitecore package by clicking on download button Installing Sitecore Package 1. Open Sitecore ( instance where you would like to install package ) and click on 'Installation Wizard' 2. upload the .zip package ...

Quick Tutorial - Setup a Solr instance

Before we start installing Solr instance on any machine, we should be clear on few concepts. What is Solr? Solr is Apache's product and a fast open-source Java search server. Why we need it? Solr enables you to easily create search engine for websites, databases and files. How can we install it? Option 1(for Windows machines) -  You can download any version of Solr from  http://archive.apache.org/dist/lucene/solr/ . Steps to install after it is downloaded- Extract the downloaded Solr package and copy it on C or D drive Please make sure latest version of Java is installed on machine. You can start Solr instance by below command: java -jar start.jar By default, Solr will run on port 8983. However you can change it ../etc/Jetty.xml file. Look for <set name="port"><SystemProperty name="jetty.port" default="8983"></set> and change it. You can keep the below command in .bet file and run it automatically. C:\solr-6.1.0\bin\s...

Could not load file or assembly 'Microsoft.Web.Infrastructure'

Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. What 'Micorosoft.Web.Infrastructure' does? This dll lets HTTP modules register at run time. Solution to above problem: Copy 'Micorosoft.Web.Infrastructure' dll in bin folder of your project and this problem should be resolved. If you have .Net framework installed on machine, this dll should be present on it. You can search for this dll and copy it in your active project folder.   Alternatively,  you can install this dll using nuget package manager PM> Install-Package Microsoft.Web.Infrastructure -Version 1.0.0 Happy coding!!