代码之家  ›  专栏  ›  技术社区  ›  Arunabh Das

WebParts.aspx页面挂起在已发布的站点中,但在本地主机上从VS2008运行时可以工作

  •  1
  • Arunabh Das  · 技术社区  · 14 年前

    我有一个WebParts.aspx页面,看起来像这样- <%@Page Language=“C#”AutoEventWireup=“true”codebhind=“WebParts.aspx.cs”Inherits=“e.WebParts”%>

                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
                <html xmlns="http://www.w3.org/1999/xhtml" >
                <head runat="server">
                    <title></title>
                </head>
                <body>
                    <form id="form1" runat="server">
                    <div>
    
                        <asp:WebPartManager ID="WebPartManager1" runat="server">
                        </asp:WebPartManager>
    
                    </div>
    
                    <div>
                    <table>
                    <tr>
                    <td>
                        <asp:WebPartZone ID="WebPartZone1" runat="server" HeaderText="News">
                            <ZoneTemplate>
                                <asp:Label ID="Label1" runat="server" Text="Label" Title="News" ></asp:Label>
                            </ZoneTemplate>
                        </asp:WebPartZone>
                        </td><td>
                            <asp:WebPartZone ID="WebPartZone2" runat="server">
                            </asp:WebPartZone>
                        </td><td>
                            <asp:WebPartZone ID="WebPartZone3" runat="server">
                                <ZoneTemplate>
                                    <asp:ListBox ID="ListBox1" runat="server" Title="Sponsors"></asp:ListBox>
                                </ZoneTemplate>
                            </asp:WebPartZone>
                        </td>
                    </tr>
    
                     <tr>
                    <td>
                        <asp:WebPartZone ID="WebPartZone4" runat="server">
                        </asp:WebPartZone>
                         </td><td>
                             <asp:WebPartZone ID="WebPartZone5" runat="server">
                             </asp:WebPartZone>
                         </td><td>
                             <asp:WebPartZone ID="WebPartZone6" runat="server">
                             </asp:WebPartZone>
                         </td>
                    </tr>
    
                    </table>
    
                    </div>
                    </form>
                </body>
                </html>
    

    当我在本地主机上直接从VS2008运行这个页面时,它运行得很好,但是当我将它发布到远程iiswebserver时,它只是挂起,没有HTTP响应。

    1 回复  |  直到 14 年前
        1
  •  1
  •   TheGeekYouNeed    14 年前