2015-10-13 60 views
1

我使用的是来自https://elfinder.codeplex.com/的elFinder Webfroms版本。我已经下载并试图运行该项目,但无法运行该项目。运行测试项目时出现以下错误。必需属性'duplicateFilePattern'找不到

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Required attribute 'duplicateFilePattern' not found.

Source Error:

Line 12: Line 13: Line 14: defaultVolumeName="LocalFileSystem" baseUrl="http://localhost:56439/data/" baseThumbsUrl="http://localhost:56439/data/.thumbs/"> Line 16:

Source File: C:\Users\xyz\Desktop\elFinderFileManager\elFinderFileManager\web.config Line: 14

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248

错误: Image

我已经尝试了很多找到谷歌,以找出错误的原因,但无法找到网络上的任何一个线索。

请有人知道它,让我知道我该如何解决这个问题?

在此先感谢!

回答

2

不是100%确定,因为我无法轻松找到文档,但错误是说您必须为duplicateFilePattern属性指定一个值。

SO上快速搜索发现一个常见的值是

duplicateFilePattern="Copy of {0}" 

表明它是用来改变的情况下,文件中已经存在的名称格式字符串。

我建议检查你的elFinder文档,特别是配置部分。

+0

你真是天才!谢谢。 :) 我甚至检查过,并从https://elfinder.codeplex.com/discussions/473624这个主题得到的想法。 –