Arb*_*æde 2 asp.net sitecore iis-7.5
我发现了一个关于sitecore管理页面的一个有趣的问题,如果我的webconашп目标设置为4.5框架是下一个
> compilation defaultLanguage="c#" debug="true" targetFramework="4.5"
> enablePrefetchOptimization="true"
Run Code Online (Sandbox Code Playgroud)
我得到了下一个错误:
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>
Run Code Online (Sandbox Code Playgroud)
如果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"/>
Run Code Online (Sandbox Code Playgroud)
和 <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
谢谢
小智 5
在Sitecore 6.6中找到了一个超级简单的解决方案.只需将iFrame重命名为div!
<div id="SDN">
<div id="StartPage" runat="server" allowtransparency="true" frameborder="0" scrolling="auto"
marginheight="0" marginwidth="0" style="display: none"></div>
</div>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2767 次 |
| 最近记录: |