Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension [closed] - sitecore

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
When i work on sitecore with tds i got this error. How can i resolve this problem?
Server Error in '/' Application.
Could not resolve type name:
frontmedia.core.sitecoreextension.search.customindex,
frontmedia.core.sitecoreextension
(method:
Sitecore.Configuration.Factory.CreateType(XmlNode
configNode, String[] parameters,
Boolean assert)). 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.Exception:
Could not resolve type name:
frontmedia.core.sitecoreextension.search.customindex,
frontmedia.core.sitecoreextension
(method:
Sitecore.Configuration.Factory.CreateType(XmlNode
configNode, String[] parameters,
Boolean assert)).
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:
[Exception: Could not resolve type
name:
frontmedia.core.sitecoreextension.search.customindex,
frontmedia.core.sitecoreextension
(method:
Sitecore.Configuration.Factory.CreateType(XmlNode
configNode, String[] parameters,
Boolean assert)).]
Sitecore.Diagnostics.Error.Raise(String
error, String method) +129
Sitecore.Configuration.Factory.CreateType(XmlNode
configNode, String[] parameters,
Boolean assert) +421
Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode
configNode, String[] parameters,
Boolean assert) +67
Sitecore.Configuration.Factory.CreateObject(XmlNode
configNode, String[] parameters,
Boolean assert, IFactoryHelper helper)
+141 Sitecore.Configuration.Factory.CreateObject(String
configPath, String[] parameters,
Boolean assert) +424
Sitecore.Configuration.Factory.CreateFromReference(XmlNode
configNode, String[] parameters,
Boolean assert) +194
Sitecore.Configuration.Factory.CreateObject(XmlNode
configNode, String[] parameters,
Boolean assert, IFactoryHelper helper)
+118 Sitecore.Configuration.Factory.GetInnerObject(XmlNode
paramNode, String[] parameters,
Boolean assert) +930
Sitecore.Configuration.Factory.AssignProperties(XmlNode
configNode, String[] parameters,
Object obj, Boolean assert, Boolean
deferred, IFactoryHelper helper) +581
Sitecore.Configuration.Factory.CreateObject(XmlNode
configNode, String[] parameters,
Boolean assert, IFactoryHelper helper)
+296 Sitecore.Configuration.Factory.CreateObject(String
configPath, String[] parameters,
Boolean assert) +424
Sitecore.Configuration.Factory.GetDatabase(String
name, Boolean assert) +185
Sitecore.Configuration.Factory.GetDatabases()
+152 Sitecore.Data.Managers.HistoryManager.InitializeEventHandlers()
+49 Sitecore.Pipelines.Loader.InitializeManagers.Process(PipelineArgs
args) +9 (Object , Object[] ) +80
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs
args) +191
Sitecore.Nexus.Web.HttpModule.Application_Start()
+146 Sitecore.Nexus.Web.HttpModule.Init(HttpApplication
app) +603
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
appContext, HttpContext context,
MethodInfo[] handlers) +546
System.Web.HttpApplication.InitSpecial(HttpApplicationState
state, MethodInfo[] handlers, IntPtr
appContext, HttpContext context) +325
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
appContext, HttpContext context) +407
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
appContext) +375
[HttpException (0x80004005): Could not
resolve type name:
frontmedia.core.sitecoreextension.search.customindex,
frontmedia.core.sitecoreextension
(method:
Sitecore.Configuration.Factory.CreateType(XmlNode
configNode, String[] parameters,
Boolean assert)).]
System.Web.HttpRuntime.FirstRequestInit(HttpContext
context) +11529072
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext
context) +141
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
wr, HttpContext context) +4784373
-------------------------------------------------------------------------------- Version Information: Microsoft .NET
Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.1

Most likely you need to add a reference to the frontmedia.core.sitecoreextension assembly in your project folder for your build. Look in you bin for the dll named frontmedia.core.sitecoreextension. In Solution Explorer in VS, select References (make sure to show all files and folders). Right click to open the context menu. Select Add Reference...In the dialog, select the Browse tab. Broswe to the bin folder of the website. Select the frontmedia.core.sitecoreextension.dll. Click OK. In properties, set copylocal to false. Build. There may be other extensions, too. Look in the App_Config/Include folder to what other extensions are referrenced. For example, look at XslExtension.config for named classes and assemblies. If using TDS from Hedge Hog, you'll probably need to add this to your build server as well.

Related

Sitecore SXA search error

We are working on a Siteocore 8.2 update 3 solution with SXA and WFFM modules included. Everything is fine on CM Server but we are facing issues with search on CD server.
We've enabled 'SwitchMastertoweb' and configured CD SXA settings as per the instructions in the installation guide. But still we are facing this issue.
Any clue?
16728 15:36:13 ERROR Call to resource failed with exception - Resource: https://<<sitename>>/sxa/search/facets?f=sxacategoryname&p=3&l=&sig=&q=pets&s={F33B91B9-DB55-4E81-84C1-71C99E612F9F}|{F33B91B9-DB55-4E81-84C1-71C99E612F9F};
16728 15:36:13 ERROR
GET call failed - Endpoint: https://<site>/sxa/search/facets?f=sxacategoryname&p=3&l=&sig=&q=pets&s={F33B91B9-DB55-4E81-84C1-71C99E612F9F}|{F33B91B9-DB55-4E81-84C1-71C99E612F9F};
HttpStatusCode: (400) BadRequest; HttpStatusDescription: Bad Request; Error:
Could not create instance of type: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. No matching constructor was found.;
24392 15:36:13 WARN Could not find constructor in ReflectionUtil.CreateObject: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. The constructor parameters may not match or it may be an abstract class. Parameter info: Count: 0
24392 15:36:13 WARN Facets endpoint exception
Exception: Sitecore.Exceptions.ConfigurationException
Message: Could not create instance of type: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. No matching constructor was found.
Source: Sitecore.Kernel
at Sitecore.Configuration.DefaultFactory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.DefaultFactory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.DefaultFactory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.DefaultFactory.CreateObject(String configPath, String[] parameters, Boolean assert)
at Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration()
at Sitecore.ContentSearch.Pipelines.GetContextIndex.FetchIndex.GetContextIndex(IIndexable indexable, GetContextIndexArgs args)
at Sitecore.ContentSearch.Pipelines.GetContextIndex.FetchIndex.Process(GetContextIndexArgs args)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
at Sitecore.Abstractions.CorePipelineWrapper.Run(String pipelineName, PipelineArgs args)
at Sitecore.ContentSearch.Pipelines.GetContextIndex.GetContextIndexPipeline.Run(ICorePipeline pipeline, GetContextIndexArgs args)
at Sitecore.XA.Foundation.Search.Services.SearchService.GetQuery(String query, String scope, String language, Coordinates center, String& indexName)
at Sitecore.XA.Foundation.Search.Controllers.SearchController.GetFacets(String f, String q, String s, String l, String g, String sig)
It's a very late answer and I believe that this problem is already gone in 1.6 and 1.7. In the older releases of SXA we've been patching a lot of Sitecore indexes - unnecessary.
The exception which I can see there Could not create instance of type: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. No matching constructor was found. is exactly telling this. There is a patch for the index which doesn't exist. The solution for such kinds of issues is to remove not needed patches for indexes which doesn't exist (you are not using them, they are in present on your Sitecore instance).
In SXA 1.7 we have just patched for sitecore_master_index and sitecore_web_index. There is also an option to use SXA specific indexes and not use Sitecore one at all.

Sitecore 8, Crawling error for every item (Could not compute value for ComputedIndexField)

In the crawling.log I can see the following exception exist for every sitecore item. This is also making the sitecore content editor slow at startup.
6488 20:05:13 WARN Could not compute value for ComputedIndexField: recommendation for indexable: sitecore://master/{8FD38E05-E13C-4D51-842F-877B5DA91E72}?lang=en&ver=1
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Sitecore.Reflection.ReflectionUtil.CreateObject(Type type, Object[] parameters)
at Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper)
at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert)
at Sitecore.Analytics.Reporting.ReportingQueryBase..ctor(ReportDataProviderBase reportProvider, CachingPolicy cachingPolicy)
at Sitecore.ContentTesting.Analytics.Reporting.TimeRangeItemBasedReportingQuery..ctor(ID queryItemId, ReportDataProviderBase reportProvider, CachingPolicy cachingPolicy)
at Sitecore.ContentTesting.Analytics.Reporting.TestPotentialQuery..ctor(ReportDataProviderBase reportProvider)
at Sitecore.ContentTesting.ContentSearch.ComputedIndexFields.TestPotentialMetricBase.ComputeFieldValue(IIndexable indexable)
at Sitecore.ContentSearch.LuceneProvider.LuceneDocumentBuilder.AddComputedIndexFieldsInSequence()
Nested Exception
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Sitecore.Analytics.MongoDB
at Sitecore.Analytics.Reporting.MongoDbReportDataSource..ctor(String connectionStringName)
I actually have no idea whats going wrong. Any help would be really appreciated.

Sitecore Fieldmap Configuration Error

I am getting the following error after I followed the installation of Sitecore SOLR for 8.1. After changing all the lucene configs to disabled, and the solr ones to enabled, and then added this in the Global.asax
public void Application_Start()
{
this.Container = new WindsorContainer();
var startup = new WindsorSolrStartUp(this.Container);
startup.Initialize();
}
the minute I add those lines above, I get this error:
Could not find property 'fieldMap' on object of type: System.String
[InvalidOperationException: Could not find property 'fieldMap' on
object of type: System.String]
Sitecore.Configuration.Factory.AssignProperties(Object obj, Object[]
properties) +2402
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode,
String[] parameters, Object obj, Boolean assert, Boolean deferred,
IFactoryHelper helper) +643
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.CreateObject(String configPath,
String[] parameters, Boolean assert) +579
Sitecore.Configuration.Factory.CreateFromReference(XmlNode configNode,
String[] parameters, Boolean assert) +137
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +109
Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode,
String[] parameters, Boolean assert) +120
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode,
String[] parameters, Object obj, Boolean assert, Boolean deferred,
IFactoryHelper helper) +552
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode,
String[] parameters, Boolean assert) +1013
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode,
String[] parameters, Object obj, Boolean assert, Boolean deferred,
IFactoryHelper helper) +552
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.CreateObject(String configPath,
String[] parameters, Boolean assert) +579
Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration()
+266 Sitecore.ContentSearch.SolrProvider.SolrContentSearchManager.get_Cores()
+92 Sitecore.ContentSearch.SolrProvider.CastleWindsorIntegration.WindsorSolrStartUp.Initialize()
+44
Does anyone have an idea why this would happen? I tried replacing config files from a fresh 8.1 but still no luck.
Thanks!
You don't need to add any code in Global.asax , Just make sure that your Global.asax have the following tag in header only:
<%#Application Language='C#' Inherits="Sitecore.ContentSearch.SolrProvider.CastleWindsorIntegration.WindsorApplication" %>
Checkout this link
I found there was one folder where I left out a .disabled for Lucene. After doing this, it worked. Ooops!

Issue in publishing whole website after upgrading from 7.1 to 7.2(release)

We have upgraded sitecore version from 7.1 to 7.2 and we are on the last step where we need to publish whole website. When we tried to publish whole website, we are got following error:
Job started: Publish to 'web'|#Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Could not resolve type name: Sitecore.Publishing.Pipelines.Publish.OverridePublishContext, Sitecore.Kernel (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)).
at Sitecore.Diagnostics.Error.Raise(String error, String method)
at Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Pipelines.CorePipelineFactory.GetObjectFromType(String type, XmlNode processorNode)
at Sitecore.Pipelines.CoreProcessor.GetMethod(Object[] parameters)
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Publishing.Pipelines.Publish.PublishPipeline.Run(PublishContext context)
at Sitecore.Publishing.Publisher.Publish()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(`enter code here`Object obj, Object[] parameters)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Jobs.Job.ThreadEntry(Object state)
When having the issue Could not resolve type name, this means that your dlls are not up to date or your config files.
Please check your dlls against dlls from a fresh installation of Sitecore 7.2. Also check the config files. Moreover, check that you dlls have been compiled against the Sitecore 7.2 dlls.
Thanks

Sitecore - Root item is not defined

I've run into the following error while trying to deploy with TDS. I don't believe that there are any custom indexes. I've looked at the following link and cleared my \Data\Indexes folder.
Sitecore Index error - Root Item Not defined
What can cause this error?
Also this is the url I'm getting the error on : http://<hostname>/sitecore
Full stack trace:
[InvalidOperationException: Root item is not defined]
Sitecore.Diagnostics.Assert.IsNotNull(Object value, String message) +59
Sitecore.Search.Crawlers.DatabaseCrawler.Initialize(Index index) +106
Sitecore.Search.Index.AddCrawler(ICrawler crawler) +36
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +1255
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) +91
Sitecore.Configuration.Factory.AssignProperties(Object obj, Object[] properties) +760
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +943
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +305
Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +858
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +795
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +305
Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +395
Sitecore.Search.SearchManager.get_SearchConfig() +71
Sitecore.Search.SearchManager.GetIndex(String id) +43
Sitecore.Shell.Applications.ShellForm.OnLoad(EventArgs e) +1331
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +1255
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) +91
Sitecore.Web.UI.Sheer.ClientPage.OnLoad(EventArgs e) +332
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
If you browse to this page http://[yourhostname]/sitecore/admin/showconfig.aspx
Search for any instances of the index element and check the <Root>path here</Root> node path actually exists in your content tree
See the default index for an example
<index id="system" type="Sitecore.Search.Index, Sitecore.Kernel">
<param desc="name">$(id)</param>
<param desc="folder">__system</param>
<Analyzer ref="search/analyzer"/>
<locations hint="list:AddCrawler">
<core type="Sitecore.Search.Crawlers.DatabaseCrawler,Sitecore.Kernel">
<Database>core</Database>
<Root>/sitecore/content</Root>
<include hint="list:IncludeTemplate">
<application>{EB06CEC0-5E2D-4DC4-875B-01ADCC577D13}</application>
</include>
<Tags>application</Tags>
<Boost>2.0</Boost>
</core>
<core-controlpanel type="Sitecore.Search.Crawlers.DatabaseCrawler,Sitecore.Kernel">
<Database>core</Database>
<Root>/sitecore/content/applications/control panel</Root>
<include hint="list:IncludeTemplate">
<taskoption>{BDB6FA46-2F76-4BDE-8138-52B56C2FC47E}</taskoption>
</include>
<Tags>taskoption</Tags>
<Boost>1.9</Boost>
</core-controlpanel>
<master type="Sitecore.Search.Crawlers.DatabaseCrawler,Sitecore.Kernel">
<Database>master</Database>
<Tags>master content</Tags>
</master>
</locations>
</index>
Once you correct any invalid Root values the site should work again.
Issue Cause
This problem usually occurs when an Sitecore lucene index has been declared but the <Root> it refers to is not in the database.
Note: If the database the index targets is web this may be cause you haven't published the items.
Issue fix
Because you can't get to the Sitecore desktop you'll have to comment out the index causing the issue. If you don't know which one it is you have to use plain old trial and error because sitecore won't tell you.
To see all indexes you have declared in your system go to http://[yourhostname]/sitecore/admin/showconfig.aspx and search for <index. This is the combination of all configuration declared in App_Config.
An index will look like this:
<index id="MyIndexId" type="Sitecore.Search.Index, Sitecore.Kernel">
Once you find the culprit comment it out then create or deploy the missing root item in Sitecore. Once that's done add the index back in.