2015-10-13 61 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這個主題得到的想法。 –