在获取 MySite 的默认共享点母版页、进行一些更改并使用 WSPBuilder 制作 wsp 后,我的日志中出现了以下错误:
http://spoint/MySite/_catalogs/masterpage/MySite.master - 此 Web 部件中遇到意外错误。错误:具有虚拟路径“_controltemplates/Welcome.ascx”的控件不在 URL“ http://spoint/MySite ”的 Web 安全控件列表中。来源:[UnsafeControlException:具有虚拟路径“_controltemplates/Welcome”的控件.ascx' 不在 URL ' http://spoint/MySite ' 的 web 安全控制列表中(省略了堆栈跟踪)
http://spoint/MySite/_catalogs/masterpage/MySite.master - 此 Web 部件中遇到意外错误。错误:具有虚拟路径“_controltemplates/DesignModeConsole.ascx”的控件不在 URL“ http://spoint/MySite ”的 Web 安全控件列表中。来源:[UnsafeControlException:具有虚拟路径“_controltemplates/DesignModeConsole”的控件.ascx' 不在 URL ' http://spoint/MySite ' 的 web 安全控制列表中(省略了堆栈跟踪)
所以,这个母版页实际上使用了这些 OOTB 控件,所以我想我需要对它们进行安全控制。我想我想通过 manifest.xml 做到这一点。但我看不到如何让 WSPBuilder 做到这一点。