SharePoint 2013 删除母版页报错“This file may not be moved, deleted, renamed, or otherwise edited”
2014-04-08 10:09
411 查看
在使用SharePoint 2013母版页的时候,我复制了一个seattle.master页面,然后想重命名一下发现报错,删除也报错,spd、页面分别试过签入签出以后均报错,错误如下:
![](http://images.cnitblog.com/i/256729/201404/080958347472495.png)
尝试找了一下错误,重启各种服务甚至重启服务器,均不起作用,报错照旧,后来联想到SharePoint 2013的master是和html相关联的,所以想到下面的方法。
在复制了Seattle_copy(1).master以后,发现无法删除;再复制一个Seattle_copy(1).html,然后双击打开随便修改一下,然后保存,刷新spd,发现master和html的修改时间相同了,然后两个同时选中,删除,发现删除成功。由此可见,单独复制的master页面无法删除是因为和相关html页面想关联造成的。
![](http://images.cnitblog.com/i/256729/201404/080958450436216.png)
为了解决这个问题,我们可以复制的时候,将master和html两种格式的母版页一起复制,然后在网站设置,母版页和页面布局库中,如下图:
![](http://images.cnitblog.com/i/256729/201404/080958545595108.png)
在该库中找到html格式母版页,编辑属性,找到关联文件,去掉勾(即断开html和master的关联),如下图:
![](http://images.cnitblog.com/i/256729/201404/080959044973873.png)
这样操作以后,master类型的母版页将不再和html想关联,删除、修改等操作,均不再报错,如下图:
![](http://images.cnitblog.com/i/256729/201404/080958347472495.png)
尝试找了一下错误,重启各种服务甚至重启服务器,均不起作用,报错照旧,后来联想到SharePoint 2013的master是和html相关联的,所以想到下面的方法。
在复制了Seattle_copy(1).master以后,发现无法删除;再复制一个Seattle_copy(1).html,然后双击打开随便修改一下,然后保存,刷新spd,发现master和html的修改时间相同了,然后两个同时选中,删除,发现删除成功。由此可见,单独复制的master页面无法删除是因为和相关html页面想关联造成的。
![](http://images.cnitblog.com/i/256729/201404/080958450436216.png)
为了解决这个问题,我们可以复制的时候,将master和html两种格式的母版页一起复制,然后在网站设置,母版页和页面布局库中,如下图:
![](http://images.cnitblog.com/i/256729/201404/080958545595108.png)
在该库中找到html格式母版页,编辑属性,找到关联文件,去掉勾(即断开html和master的关联),如下图:
![](http://images.cnitblog.com/i/256729/201404/080959044973873.png)
这样操作以后,master类型的母版页将不再和html想关联,删除、修改等操作,均不再报错,如下图:
![](http://images.cnitblog.com/i/256729/201404/080959143257437.png)
相关文章推荐
- SharePoint 2013 删除母版页报错“This file may not be moved, deleted, renamed, or otherwise edited”
- 奇葩问题: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
- SharePoint 2013 搜索报错"Unable to retrieve topology component health. This may be because the admin component is not up and running"
- SharePoint 2013 搜索报错"Unable to retrieve topology component health. This may be because the admin component is not up and running"
- VS2013运行报错error C4996: 'scanf': This function or variable may be unsafe.
- 删除: warning C4996: 'sprintf': This function or variable may be unsafe. Consider 方法
- vs2013 error c4996: This function or variable may be unsafe
- 安装VisualDSP++出现Install cannot proceed.Could not find XML file or the XML file may be corrupted!
- 安装VisualDSP++出现Install cannot proceed.Could not find XML file or the XML file may be corrupted!
- SharePoint 2013 排错之"Code blocks are not allowed in this file"
- vs2013 error c4996: 'fopen': This function or variable may be unsafe
- Visual Studio 2013 编译错误【error C4996: 'scanf': This function or variable may be unsafe. 】
- Visual Studio 2013 编译错误【error C4996: 'sprintf': This function or variable may be unsafe. 】的解决方案
- SharePoint 2013 排错之"Code blocks are not allowed in this file"
- Project file contains ToolsVersion="12.0". This toolset may be unknown or missing
- 编译错误:A class file was not written. The project may be inconsistent, if so try refreshing this projec
- A class file was not written. The project may be inconsistent, if so try refreshing this project and
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it. eclipse提示错误
- 【VS2013】错误处理error C4996: 'fopen': This function or variable may be unsafe
- Visual Studio 2013编译错误【error c4996:"scanf":This function or variable may be unsaft.】解决方案