Skip to main content

New answers tagged

1 vote
Accepted

Use dictionary from xml file, Sitecore 8.2

You can use Literal to display the Publishing Warning message as below inside the xml file. <Literal class="publish-warning-text" Text='${Translate.Text("PublishingWarning")}' /&...
ckhanna's user avatar
  • 3,709
0 votes
Accepted

Unexpected provider type: Project.Common.Providers.SwitchingLinkProvider. Expected: Sitecore.Links.LinkProvider

You will need to extend your custom link provider with Sitecore.Links.LinkProvider provider class since you are adding this in the link provider collection. using Sitecore.Links; public class ...
ckhanna's user avatar
  • 3,709
0 votes

Unexpected provider type: Project.Common.Providers.SwitchingLinkProvider. Expected: Sitecore.Links.LinkProvider

It looks like in the latest version of Sitecore, what ever it is that is consuming your custom class is expecting either a LinkProvider or something derived from it. I copied your custom class into a ...
Dean OBrien's user avatar
  • 1,842
0 votes
Accepted

Unable to resolve service for type 'System.String' while attempting to activate 'Project.Common.Providers.CategoryStandardValuesProvider'

You are gettting this error since string type is not resolved through dependency injection. In order to add multiple providers for standard value, you will need to extend the StandardValuesProvider ...
ckhanna's user avatar
  • 3,709
0 votes

Unable to resolve service for type 'System.String' while attempting to activate 'Project.Common.Providers.CategoryStandardValuesProvider'

Your error indicates that Sitecore's dependency injection system is attempting to resolve a constructor parameter of type System.String, but it doesn't know how to supply a value for it. So in order ...
Praveen Sharma's user avatar
1 vote
Accepted

Could not create instance of type: Project.Common.Providers.SwitchingStandardValuesProvider. No matching constructor was found. Constructor parameters

In Sitecore, when you are configuring providers in the web.config (or any similar patch configuration file), the resolve="true" attribute instructs Sitecore's factory system to use ...
Praveen Sharma's user avatar
0 votes

Could not create instance of type: Project.Common.Providers.SwitchingStandardValuesProvider. No matching constructor was found. Constructor parameters

You will need to add resolve as true where you are patching the standard value provider as below. <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> ...
ckhanna's user avatar
  • 3,709

Top 50 recent answers are included