简体   繁体   English

创建SharePoint发布页面时出错-“文件不存在”

[英]Error while creating SharePoint publishing page - “The file does not exist”

While creating the page (manually) I am getting "file not found error" for the page I am trying to create. 在创建页面时(手动),我正在尝试创建的页面收到“找不到文件错误”。 When I am checking the log the error is like - 当我检查日志时,错误如下:

A critical error occurred while creating a PublishingPage through PublishingWeb.AddPublishingPage(string, PageLayout, SPFolder). 通过PublishingWeb.AddPublishingPage(string,PageLayout,SPFolder)创建PublishingPage时发生严重错误。 System.IO.FileNotFoundException: The file http://win-k3ov869t32r:31141/sites/Demo7/Pages/testpage.aspx does not exist. System.IO.FileNotFoundException:文件http:// win-k3ov869t32r:31141 / sites / Demo7 / Pages / testpage.aspx不存在。

Here testpage is the name of the page I want to create. 这里的testpage是我要创建的页面的名称。

I would advise going to the ULS logs to get further information. 我建议转到ULS日志以获取更多信息。

I would suggest looking to see if the page layout you are creating the page against exists. 我建议您查看是否要创建针对其的页面布局。 If you can't find the layout thats your problem. 如果找不到布局,那就是您的问题。

This could be in the hive or in the page layouts list. 这可以在配置单元中或在页面布局列表中。

Hope this helps 希望这可以帮助

Many Thanks 非常感谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM