我正在使用EPiServer CMS 5开发一个ASP.NET(C#)应用程序。在首页上我们有四个WebPart区域,一切都通过Visual Studio运行得很好。将它发布到生产服务器(IIS 7)时,起始页显示为空白页,没有任何错误......
当我们删除这些代码行时,它会起作用,因此它与WebParts有关。
<WebParts:ExtendedWebPartManager ID="WebPartsManager" runat="server"></WebParts:ExtendedWebPartManager>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone1" runat="server" ID="WebPartZone1" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone2" runat="server" ID="WebPartZone2" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone3" runat="server" ID="WebPartZone3" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
<WebParts:ExtendedWebPartZone WebPartProperty="WebPartZone4" runat="server" ID="WebPartZone4" PartChromeType="None" AllowLayoutChange="false" Padding="0" PartChromePadding="0" Width="100%"></WebParts:ExtendedWebPartZone>
答案 0 :(得分:0)
我的猜测是,IIS 7特定部分的web.config中缺少某些东西(很可能是在一个system.webServer-elements中)。
答案 1 :(得分:0)
通过“重新安装”EPiServer的webpart框架解决...