Sitecore - 在媒体库中上传文件错误

时间:2015-11-26 07:57:12

标签: sitecore media

当我点击Sitecore媒体库中的“上传文件”按钮时,会抛出异常。 “上传文件(高级)”按钮工作正常。

enter image description here

这是错误消息:

Server Error in '/' Application.
Value cannot be null.
Parameter name: 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.ArgumentNullException: Value cannot be null.
Parameter name: 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.

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: value]
   Sitecore.Text.UrlString.Add(String key, String value) +149
   Sitecore.Shell.Framework.Commands.Media.Upload.Run(ClientPipelineArgs args) +1801
   Sitecore.Intranet.Commands.Media.Upload.RunOverridden(ClientPipelineArgs args) +421

[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.Pipelines.Processor.Invoke(PipelineArgs args) +318
   Sitecore.Nexus.Pipelines.NexusPipelineApi.Resume(PipelineArgs args, Pipeline pipeline) +330
   Sitecore.Pipelines.Pipeline.DoStart(PipelineArgs args) +208
   Sitecore.Pipelines.Pipeline.Start(PipelineArgs args, Boolean atomic) +182
   Sitecore.Web.UI.Sheer.ClientPage.RunPipelines() +280
   Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e) +530
   Sitecore.Shell.Applications.ContentManager.ContentEditorPage.OnPreRender(EventArgs e) +25
   System.Web.UI.Control.PreRenderRecursiveInternal() +108
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394

知道如何解决这个问题吗?另外我想隐藏“上传文件”按钮。我怎么能这样做?

谢谢:)

1 个答案:

答案 0 :(得分:1)

该按钮仅在firefox中无法使用。

您可以隐藏它,转到核心数据库,然后删除此项

/ sitecore / content / Applications / Content Editor / Editors / Media / Media Folder / Buttons / Upload - Multi

我测试了它,它确实有用。