Tuesday, March 12, 2019

TDS Sync:Duplicate Sitecore ID's found in files sitecore\layout.item and sitecore\layout.item

Hi Friends,

Often while working with TDS sync you might be getting the below error :

'Duplicate Sitecore ID's found in files sitecore\layout.item and sitecore\layout.item'


I wanted to share this article as I get this error several times and wanted to let you know what I do to fix it. It is not necessary that the fix happens by any of the listed. I have just mentioned the solutions which worked for me.

1. TDS caching I- Try closing and reopening visual studio as it will clear the TDS cache. Sometimes caching is the issue.

2. TDS caching II -
     a) Go to Tools→Options→TDS Options and set Background Cache Loading to False.  
      b) Restart Visual Studio
      c) Set Background Cache Loading back to True.


enter image description here

3.  Open the TDS project in text editor and remove the duplicate items . Re-sync the items. It works without any problems.

4. Push Items - when nothing works and if dependency is not an issue, you can select individuals items and use the option of 'Quick Push', this will push your desired item to sitecore instance. 

Thanks 

Wednesday, January 16, 2019

Sitecore 8.0 - Failed to connect to SQL database(-2147467259 master)

Hi Friends,

Many of you might have faced the issue while installing  Sitecore 8.0 from .exe file.
Figure 1
Solution: SQL server installation should be done using the account NETWORK SERVICE/LOCAL SERVICE/. So you will need to uninstall Microsoft SQL server from Program manager, Delete the physical folder from C:/Program files, delete the Registry entries if things do not work. Re-install SQL server using the mentioned account and not the default account selected. 

Thursday, January 10, 2019

SiteCore 9.0 - [Issue]:Forms/templates does not show up in the Forms section from dashboard.

Hi All,

I was facing issue while working with Forms in Sitecore 9.0. I created the form and it was showing in the content editor under Forms node.

However, no forms were showing in the Dashboard's form section. See Figure 1.

Figure 1


Solution: Just rebuild the indexes of the master database and it will start showing.

Wednesday, January 2, 2019

Sitecore 9.0.0 - Lab 8 - After adding reference to sitecore.contentsearch

Hi Friends,

I was going through the below course:

Sitecore® 9.0 Platform Essentials for Developers eLearning Lab Module Error


In the last lab which is of Module 8, I got the below error and my site stopped working. I was unable to login as the login page was not showing up. 

Server Error in '/' Application.
Method not found: 'System.String Sitecore.ContentSearch.Abstractions.ISettings.GetSetting(System.String, System.String)'.
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.MissingMethodException: Method not found: 'System.String Sitecore.ContentSearch.Abstractions.ISettings.GetSetting(System.String, System.String)'.

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: 


[MissingMethodException: Method not found: 'System.String Sitecore.ContentSearch.Abstractions.ISettings.GetSetting(System.String, System.String)'.]
   Sitecore.ContentSearch.SolrProvider.SolrContentSearchManager.get_IsEnabled() +0
   Sitecore.ContentSearch.SolrProvider.Pipelines.Loader.InitializeSolrProvider.Process(PipelineArgs args) +14
   (Object , Object[] ) +71
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +469
   Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22
   Sitecore.Nexus.Web.HttpModule.Application_Start() +161


Solution : Sitecore.ContentSearch.NoReferences and Sitecore.ContentSearch.Linq.NoReferences packages that are provided in Student Resources are not compatible with the latest sitecore 9.0.0. version.  So, you need to override the listed DLLs with the one which came with the original setup of sitecore. 


Tuesday, January 1, 2019

Sitecore 9.0.0 - Content editor not opening after installing package

Hi Friends,

I faced an issue after installing a package. My content editor was not opening. Below is the screenshot of the error



Solution:

The error is related to solr. The config files at the path "App_Config\Sitecore\ContentSearch"  are modified. Replace/Rollback all the files from the backup you have of the specific folder. 

Sitecore 9.0.0- Controller path not found while deploying files from Sitecorerocks to the webroot hosted site

Hi All,

I found the controller path not found error while I deployed the files from sitecore rocks to the localhost webroot folder of sitecore. I struggled a lot to get it sorted and below is the solution:

1) Whenever you create a publish custom profile, never select the option of  "Delete Existing files", it can eat a lot of your time to fix it as it deletes the existing running sitecore instance of your machine😟😟

2) Make sure that the versions of the listed Dll files are same in the localhost webroot directory i.e c://inetpub/wwwroot/yoursitecorehostedfolder and your project folder from where you are pushing your complied files to webroot.

a) System.web.mvc.dll
b)System.Web.Razor.dll
c)System.web.Services.dll
d)System.web.webpages.deployment.dll
e)System.web.webpages.Razor.dll

For some of my colleagues just making sure that system.web.mvc.dll version was same at both the location, it worked. But it did not work for me. 

Friday, December 28, 2018

Installing Sitecore 9.0.2 - My hiccups

Hi All,

I would like to share my installation issues while installing Sitecore 9.0.2. I would personally recommend to follow the link on Youtube.

Listed are the couple of issues you might face. I will try to separate the errors module wise or error wise and the solution to fix it.


SiteCoreInstallationFramework Module

Error : The mentioned youtube link installs version 2.0.0 module of "SiteCoreInstallationFramework". As on date 11-12-2018 i.e. today when I wrote this article version 2.0.0 is the latest module here. This version  gave me error while creating certificates. A prompt comes when you run the powershell scripts. It asks for the permission to create Non trusted certificates and when you click on 'Yes'  option of the below screen, it creates duplicate certificates and then scripts shows error of multiple thumbprints ,signer error etc..

Ceritificate screen


Solution : If you have already installed framework 2.0.0.0, you will need to uninstall the module using below command.

Uninstall-Module -Name "SitecoreInstallFramework" -AllVersions

 Install the module using the below command, it will install 1.2.0 version

Install-Module -Name "SitecoreInstallFramework" -RequiredVersion "1.2.0" -Repository "sc-powershell"

2) Error : Install-SitecoreConfiguration : Service 'Sitecore XConnect Search Indexer - sc9.xconnect-IndexWorker 
(sc9.xconnect-IndexWorker)' cannot be stopped due to the following error: Cannot stop sc9.xconnect-IndexWorker service 
on computer '. 

Solution: Windows add/ remove feature-->IIS-->World Wide Web Services. Make sure you have checked the option ASP, ASP.NET 3.5, ASP.NET 4.7 as shown in the below screen. 
Windows Features on or off