Sharepoint 2013-A file specified in the modules section of this template already exists.
2013-07-25 16:58
706 查看
Recently, i did sharepoint skin by using feature. I Ran into an issue where I was only able to activate my feature only once after deployment. When I deactivate the feature and then try to activate the feature again, I met the following error :
Error: A file specified in the modules section of this template already exists.
Luckily, i found the reason, please look in the elements.xml of my feature i noticed that the attribute"IgnoreIfAlreadyExists" for this file was set to false.
<File Path="Module2\_catalogs\masterpage\Master.master"
Url="Master.master"
Type="GhostableInLibrary"
IgnoreIfAlreadyExists="True"/ >
The MSDN documentation about this attribute states: “To provision even if the file aready exists at the specified URL”. Sounds like my error.
So I changed the attribute “IgnoreIfAlreadyExists” to true and…. no more error. Hope it helps you.....
<File Path="Module2\_catalogs\masterpage\Master.master"
Url="Master.master"
Type="GhostableInLibrary"
IgnoreIfAlreadyExists="false"/ >
Error: A file specified in the modules section of this template already exists.
Luckily, i found the reason, please look in the elements.xml of my feature i noticed that the attribute"IgnoreIfAlreadyExists" for this file was set to false.
<File Path="Module2\_catalogs\masterpage\Master.master"
Url="Master.master"
Type="GhostableInLibrary"
IgnoreIfAlreadyExists="True"/ >
The MSDN documentation about this attribute states: “To provision even if the file aready exists at the specified URL”. Sounds like my error.
So I changed the attribute “IgnoreIfAlreadyExists” to true and…. no more error. Hope it helps you.....
<File Path="Module2\_catalogs\masterpage\Master.master"
Url="Master.master"
Type="GhostableInLibrary"
IgnoreIfAlreadyExists="false"/ >
相关文章推荐
- matlab:Warning: Unable to determine the number of frames in this file.
- Eclipse中创建Maven项目时,报错提示:“a pom xml file already exists in the destination folder ”
- this inspection reports usage of the default file template for file header
- SharePoint 2013 排错之"Code blocks are not allowed in this file"
- This platform could not be created because a solution platform of the same name already exists.
- This platform could not be created because a solution platform of the same name already exists解决方法
- InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
- error -5008: intel64 or amd64 must be specified in the template of the summary
- SharePoint 2013 排错之"Code blocks are not allowed in this file"
- Some text formatting may have changed in this file because the maximum number of fonts was exceeded解决办法
- "Failed to add file '(name here)': object of the same name already exists
- InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pa
- This generally means that another instance of this process was already running or is hung in the debugger
- Oracle AWR 报告中 No data exists for this section of the report 说明
- Oracle AWR 报告中 No data exists for this section of the report 说明
- Oracle AWR 报告中 No data exists for this section of the report 说明
- [SharePoint知识库] 导出List为Template时,提示 The specified gallery is not available for this Web site collection.
- Oracle AWR 报告中 No data exists for this section of the report 说明
- Oracle AWR 报告中 No data exists for this section of the report 说明
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved