如果我在 web conашп 目标中设置为 4.5 框架是下一个,我发现了 sitecore 管理页面的一个有趣问题
> compilation defaultLanguage="c#" debug="true" targetFramework="4.5"
> enablePrefetchOptimization="true"
我得到下一个错误:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The base class includes the field 'StartPage', but its type (System.Web.UI.HtmlControls.HtmlGenericControl) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlIframe).
Source Error:
Line 71: </div>
Line 72: <div id="SDN">
Line 73: <iframe id="StartPage" runat="server" allowtransparency="true" frameborder="0" scrolling="auto"
Line 74: marginheight="0" marginwidth="0" style="display: none"></iframe>
Line 75: </div>
如果 targetFramework arrrib 是 4.0 一切正常。如何解决?我的目标是在完整的 4.5 FW 模式下工作,我已经另外设置了
<httpRuntime
encoderType="System.Web.Security.AntiXss.AntiXssEncoder,System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
maxRequestLength="512000"
executionTimeout="600"
enableKernelOutputCache="false"
targetFramework="4.5"
requestValidationMode="4.0"/>
和<add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
谢谢