找不到配置节点:settings/setting[@name='mediaFolder']/@value
Could not find configuration node: settings/setting[@name='mediaFolder']/@value
我将 sitecore 从 7.1 升级到 7.2 并按照说明更改了所有配置文件并收到错误找不到配置节点:settings/setting[@name='mediaFolder']/@value”。但是我的网络配置具有以下值
<setting name="MediaFolder" value="$(mediaFolder)" />
<sc.variable name="mediaFolder" value="/upload" />
<media>
<folder ref="settings/setting[@name='mediaFolder']/@value">
</folder>
<filter>*</filter>
</media>
The stacktrace
Could not find configuration node:
settings/setting[@name='mediaFolder']/@value
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.InvalidOperationException: Could not find
configuration node: settings/setting[@name='mediaFolder']/@value
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.
堆栈跟踪:
[InvalidOperationException: Could not find configuration node:
settings/setting[@name='mediaFolder']/@value]
Sitecore.Diagnostics.Assert.IsTrue(Boolean condition, String message)
+70 Sitecore.Diagnostics.Assert.IsTrue(Boolean condition, String format, Object[] args) +82
Sitecore.Configuration.Factory.GetConfigNode(String xpath, Boolean
assert) +281 Sitecore.Configuration.Factory.CreateObject(String
configPath, String[] parameters, Boolean assert) +158
Sitecore.Configuration.Factory.CreateFromReference(XmlNode configNode,
String[] parameters, Boolean assert) +203
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +161
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert) +64
Sitecore.Configuration.Factory.CreateObject(String configPath,
String[] parameters, Boolean assert) +461
Sitecore.Configuration.Factory.CreateObject(String configPath, Boolean
assert) +61 Sitecore.Configuration.Factory.GetString(String
configPath, Boolean assert) +63
Sitecore.IO.FileWatcher..ctor(String configReference) +222
Sitecore.Resources.Media.UploadWatcher..ctor() +50
[TargetInvocationException: Exception has been thrown by the target of
an invocation.] System.RuntimeTypeHandle.CreateInstance(RuntimeType
type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached,
RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean
skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +113
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly,
Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
+232 System.Activator.CreateInstance(Type type, Boolean nonPublic) +83 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes, StackCrawlMark& stackMark) +1122
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes) +128 System.Activator.CreateInstance(Type
type, BindingFlags bindingAttr, Binder binder, Object[] args,
CultureInfo culture) +18
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[]
args) +60
System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1
moduleList) +189
System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +950
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
appContext, HttpContext context, MethodInfo[] handlers) +82
System.Web.HttpApplication.InitSpecial(HttpApplicationState state,
MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
appContext) +296
[HttpException (0x80004005): Exception has been thrown by the target
of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9948312
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
+101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
wr, HttpContext context) +254
设置区分大小写。更改您对此的引用:
<folder ref="settings/setting[@name='MediaFolder']/@value">
</folder>
问题是 Sitecore.ContentSearch.config 评论部分缺少“<”。
我将 sitecore 从 7.1 升级到 7.2 并按照说明更改了所有配置文件并收到错误找不到配置节点:settings/setting[@name='mediaFolder']/@value”。但是我的网络配置具有以下值
<setting name="MediaFolder" value="$(mediaFolder)" />
<sc.variable name="mediaFolder" value="/upload" />
<media>
<folder ref="settings/setting[@name='mediaFolder']/@value">
</folder>
<filter>*</filter>
</media>
The stacktrace
Could not find configuration node: settings/setting[@name='mediaFolder']/@value
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.InvalidOperationException: Could not find configuration node: settings/setting[@name='mediaFolder']/@value
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.
堆栈跟踪:
[InvalidOperationException: Could not find configuration node: settings/setting[@name='mediaFolder']/@value]
Sitecore.Diagnostics.Assert.IsTrue(Boolean condition, String message) +70 Sitecore.Diagnostics.Assert.IsTrue(Boolean condition, String format, Object[] args) +82
Sitecore.Configuration.Factory.GetConfigNode(String xpath, Boolean assert) +281 Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +158
Sitecore.Configuration.Factory.CreateFromReference(XmlNode configNode, String[] parameters, Boolean assert) +203
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +161
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert) +64
Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +461
Sitecore.Configuration.Factory.CreateObject(String configPath, Boolean assert) +61 Sitecore.Configuration.Factory.GetString(String configPath, Boolean assert) +63
Sitecore.IO.FileWatcher..ctor(String configReference) +222
Sitecore.Resources.Media.UploadWatcher..ctor() +50[TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +113
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232 System.Activator.CreateInstance(Type type, Boolean nonPublic) +83 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1122
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +128 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +18
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +60
System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +189
System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +950 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +82
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9948312 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
设置区分大小写。更改您对此的引用:
<folder ref="settings/setting[@name='MediaFolder']/@value">
</folder>
问题是 Sitecore.ContentSearch.config 评论部分缺少“<”。