我想在我的 SharePoint 12 hive/template/layouts/TelephoneBookList/test.aspx 文件中使用母版文件(如果有意义,则为该网站的文件)。但是,每当我将 MasterPageFile="~/_layouts/simple.master" 或类似内容添加到我的 test.aspx 页面时,我都会在日志文件中看到一个共享点错误页面和以下内容:
2009 年 1 月 12 日 10:56:26.95 w3wp.exe (0x1064) 0x1280 Windows SharePoint Services 拓扑 0 严重 URL 无效:http://localhost。您可能还需要更新引用http://mcdevsp的任何备用访问映射。有关此错误的帮助:http: //go.microsoft.com/fwlink/ ?LinkId=114854
2009 年 1 月 12 日 10:56:27.09 w3wp.exe (0x1064) 0x1280 Windows SharePoint Services 常规 8dzz 高异常类型:System.Web.HttpException 异常消息:文件 '/_layouts/TelephonebookList/~masterurl/default.master' 确实不存在。
2009 年 1 月 12 日 10:56:27.23 w3wp.exe (0x1064) 0x1280 Windows SharePoint Services 拓扑 0 严重 无效 URL:http://localhost。您可能还需要更新引用http://mcdevsp的任何备用访问映射。有关此错误的帮助:http: //go.microsoft.com/fwlink/ ?LinkId=114854
01/12/2009 10:56:27.70 w3wp.exe (0x1064) 0x1280 Windows SharePoint Services 常规 8dzw 中 spHttpHandler:GetHash 已启动
01/12/2009 10:56:27.70 w3wp.exe (0x1064) 0x1280 Windows SharePoint Services 常规 8dzx 中 spHttpHandler:GetHash 完成
如果没有 MasterPageFile 属性,它可以完美运行,但是它没有网站的全局外观。
非常感谢。