Server Error in '/rss1' Application.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bansari
    New Member
    • Jul 2010
    • 20

    Server Error in '/rss1' Application.

    Hello...in mya "home.aspx" page i have included webpart manager,and webzones.and i have also write the following code in my page.still it is showing me this srror.plz help me out.

    Code:
    protected void Page_Load(object sender, EventArgs e)
        {
            WebPartManager1.DisplayMode =WebPartManager1.DisplayMode; 
        }
    and it is showing following error while viewing in browser:

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)


    And in the same appication i have another page. that is working fine. help! thenks in advance.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I don't see any code that is related to the error that you have posted.

    Please make sure that your database is accessible over the network that you are using.

    -Frinny

    Comment

    • bansari
      New Member
      • Jul 2010
      • 20

      #3
      No database is included.

      This is my scource page.and i havent used database .i have just drag and drop the controls on my page.And my server is available.
      Code:
      <%@ Page Language="C#" AutoEventWireup="true" CodeFile="home.aspx.cs" Inherits="home" %>
      
      <!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>Untitled Page</title>
      </head>
      <body>
          <form id="form1" runat="server">
          <div>
          
              <asp:WebPartManager ID="WebPartManager1" runat="server">
              </asp:WebPartManager>
      <br />
      <br />
      
      <table border="1" >
      <tr>
      <td>
          <asp:WebPartZone ID="WebPartZone1" runat="server">
              <ZoneTemplate>
                  <asp:Calendar ID="Calendar1" runat="server" BackColor="White" 
                      BorderColor="Black" DayNameFormat="Shortest" 
                      Font-Names="Times New Roman" Font-Size="10pt" ForeColor="Black" 
                      Height="220px" Width="216px" NextPrevFormat="FullMonth" TitleFormat="Month">
                      <SelectedDayStyle BackColor="#CC3333" ForeColor="White" />
                      <SelectorStyle BackColor="#CCCCCC" Font-Bold="True" Font-Names="Verdana" 
                          Font-Size="8pt" ForeColor="#333333" Width="1%" />
                      <TodayDayStyle BackColor="#CCCC99" />
                      <OtherMonthDayStyle ForeColor="#999999" />
                      <DayStyle Width="14%" />
                      <NextPrevStyle Font-Size="8pt" ForeColor="White" />
                      <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" 
                          ForeColor="#333333" Height="10pt" />
                      <TitleStyle BackColor="Black" Font-Bold="True" Font-Size="13pt" 
                          ForeColor="White" Height="14pt" />
                  </asp:Calendar>
              </ZoneTemplate>
          </asp:WebPartZone>
      </td>
      <td>
          <asp:WebPartZone ID="WebPartZone2" runat="server" BorderColor="#CCCCCC" 
              Font-Names="Verdana" Padding="6" WebPartVerbRenderMode="TitleBar">
              <EmptyZoneTextStyle Font-Size="0.8em" />
              <PartStyle Font-Size="0.8em" ForeColor="#333333" />
              <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
              <MenuLabelHoverStyle ForeColor="Yellow" />
              <MenuPopupStyle BackColor="#1C5E55" BorderColor="#CCCCCC" BorderWidth="1px" 
                  Font-Names="Verdana" Font-Size="0.6em" />
              <MenuVerbStyle BorderColor="#1C5E55" BorderStyle="Solid" BorderWidth="1px" 
                  ForeColor="White" />
              <PartTitleStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="0.8em" 
                  ForeColor="White" />
              <ZoneTemplate>
                  <asp:Image ID="Image1" runat="server" Height="217px" 
                      ImageUrl="~/img/whiteroses.jpg" Width="214px" />
              </ZoneTemplate>
              <MenuVerbHoverStyle BackColor="#E3EAEB" BorderColor="#CCCCCC" 
                  BorderStyle="Solid" BorderWidth="1px" ForeColor="#333333" />
              <PartChromeStyle BackColor="#E3EAEB" BorderColor="#C5BBAF" Font-Names="Verdana" 
                  ForeColor="#333333" />
              <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
              <MenuLabelStyle ForeColor="#333333" />
          </asp:WebPartZone>
      </td>
      </tr>
      
      <tr>
      <td>
          <asp:WebPartZone ID="WebPartZone3" runat="server" BorderColor="#CCCCCC" 
              Font-Names="Verdana" Padding="6">
              <EmptyZoneTextStyle Font-Size="0.8em" />
              <PartStyle Font-Size="0.8em" ForeColor="#333333" />
              <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
              <MenuLabelHoverStyle ForeColor="Yellow" />
              <MenuPopupStyle BackColor="#1C5E55" BorderColor="#CCCCCC" BorderWidth="1px" 
                  Font-Names="Verdana" Font-Size="0.6em" />
              <MenuVerbStyle BorderColor="#1C5E55" BorderStyle="Solid" BorderWidth="1px" 
                  ForeColor="White" />
              <PartTitleStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="0.8em" 
                  ForeColor="White" />
              <ZoneTemplate>
                  <asp:TextBox ID="TextBox1" runat="server" Height="52px" 
                      ontextchanged="TextBox1_TextChanged" Width="206px"></asp:TextBox>
                  <asp:Button ID="Button1" runat="server" Text="Button" />
              </ZoneTemplate>
              <MenuVerbHoverStyle BackColor="#E3EAEB" BorderColor="#CCCCCC" 
                  BorderStyle="Solid" BorderWidth="1px" ForeColor="#333333" />
              <PartChromeStyle BackColor="#E3EAEB" BorderColor="#C5BBAF" Font-Names="Verdana" 
                  ForeColor="#333333" />
              <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
              <MenuLabelStyle ForeColor="#333333" />
          </asp:WebPartZone>
      </td>
      <td>
          <asp:WebPartZone ID="WebPartZone4" runat="server" BorderColor="#CCCCCC" 
              Font-Names="Verdana" Height="125px" Padding="6" Width="232px">
              <EmptyZoneTextStyle Font-Size="0.8em" />
              <PartStyle Font-Size="0.8em" ForeColor="#333333" />
              <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
              <MenuLabelHoverStyle ForeColor="Yellow" />
              <MenuPopupStyle BackColor="#1C5E55" BorderColor="#CCCCCC" BorderWidth="1px" 
                  Font-Names="Verdana" Font-Size="0.6em" />
              <MenuVerbStyle BorderColor="#1C5E55" BorderStyle="Solid" BorderWidth="1px" 
                  ForeColor="White" />
              <PartTitleStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="0.8em" 
                  ForeColor="White" />
              <ZoneTemplate>
                  <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx" 
                      Target="_blank">page</asp:HyperLink>
              </ZoneTemplate>
              <MenuVerbHoverStyle BackColor="#E3EAEB" BorderColor="#CCCCCC" 
                  BorderStyle="Solid" BorderWidth="1px" ForeColor="#333333" />
              <PartChromeStyle BackColor="#E3EAEB" BorderColor="#C5BBAF" Font-Names="Verdana" 
                  ForeColor="#333333" />
              <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
              <MenuLabelStyle ForeColor="#333333" />
          </asp:WebPartZone>
      </td>
      </tr>
      </table>    
          </div>
          </form>
      </body>
      </html>

      Comment

      • bansari
        New Member
        • Jul 2010
        • 20

        #4
        hey folks!! i got its reason..and sharing you so if one have same problem than one has not to waste time :

        do the following change in web.config file of your application:
        put your connection string,and other related info instead mine.

        Code:
        <connectionStrings>
        		<clear/>
        		<add name="LocalSqlServer" connectionString="data source=xxx.xxx.xxx.xxx;database=test;user id =sa ;password=xxxxxx;"/>
        	</connectionStrings>
        	<appSettings>
        		<add key="connectionString" value="data source=xxx.xxx.xxx.xxx;database=test;user id =sa ;password=xxxxxx;"/>
           
        	</appSettings>
        Last edited by Frinavale; Nov 11 '10, 02:30 PM. Reason: update

        Comment

        Working...