473,322 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Server Error in '/rss1' Application.

bansari
20
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.

Expand|Select|Wrap|Line Numbers
  1. protected void Page_Load(object sender, EventArgs e)
  2.     {
  3.         WebPartManager1.DisplayMode =WebPartManager1.DisplayMode; 
  4.     }
  5.  
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.
Oct 15 '10 #1
3 1400
Frinavale
9,735 Expert Mod 8TB
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
Oct 15 '10 #2
bansari
20
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.
Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="home.aspx.cs" Inherits="home" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head runat="server">
  7.     <title>Untitled Page</title>
  8. </head>
  9. <body>
  10.     <form id="form1" runat="server">
  11.     <div>
  12.  
  13.         <asp:WebPartManager ID="WebPartManager1" runat="server">
  14.         </asp:WebPartManager>
  15. <br />
  16. <br />
  17.  
  18. <table border="1" >
  19. <tr>
  20. <td>
  21.     <asp:WebPartZone ID="WebPartZone1" runat="server">
  22.         <ZoneTemplate>
  23.             <asp:Calendar ID="Calendar1" runat="server" BackColor="White" 
  24.                 BorderColor="Black" DayNameFormat="Shortest" 
  25.                 Font-Names="Times New Roman" Font-Size="10pt" ForeColor="Black" 
  26.                 Height="220px" Width="216px" NextPrevFormat="FullMonth" TitleFormat="Month">
  27.                 <SelectedDayStyle BackColor="#CC3333" ForeColor="White" />
  28.                 <SelectorStyle BackColor="#CCCCCC" Font-Bold="True" Font-Names="Verdana" 
  29.                     Font-Size="8pt" ForeColor="#333333" Width="1%" />
  30.                 <TodayDayStyle BackColor="#CCCC99" />
  31.                 <OtherMonthDayStyle ForeColor="#999999" />
  32.                 <DayStyle Width="14%" />
  33.                 <NextPrevStyle Font-Size="8pt" ForeColor="White" />
  34.                 <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" 
  35.                     ForeColor="#333333" Height="10pt" />
  36.                 <TitleStyle BackColor="Black" Font-Bold="True" Font-Size="13pt" 
  37.                     ForeColor="White" Height="14pt" />
  38.             </asp:Calendar>
  39.         </ZoneTemplate>
  40.     </asp:WebPartZone>
  41. </td>
  42. <td>
  43.     <asp:WebPartZone ID="WebPartZone2" runat="server" BorderColor="#CCCCCC" 
  44.         Font-Names="Verdana" Padding="6" WebPartVerbRenderMode="TitleBar">
  45.         <EmptyZoneTextStyle Font-Size="0.8em" />
  46.         <PartStyle Font-Size="0.8em" ForeColor="#333333" />
  47.         <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
  48.         <MenuLabelHoverStyle ForeColor="Yellow" />
  49.         <MenuPopupStyle BackColor="#1C5E55" BorderColor="#CCCCCC" BorderWidth="1px" 
  50.             Font-Names="Verdana" Font-Size="0.6em" />
  51.         <MenuVerbStyle BorderColor="#1C5E55" BorderStyle="Solid" BorderWidth="1px" 
  52.             ForeColor="White" />
  53.         <PartTitleStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="0.8em" 
  54.             ForeColor="White" />
  55.         <ZoneTemplate>
  56.             <asp:Image ID="Image1" runat="server" Height="217px" 
  57.                 ImageUrl="~/img/whiteroses.jpg" Width="214px" />
  58.         </ZoneTemplate>
  59.         <MenuVerbHoverStyle BackColor="#E3EAEB" BorderColor="#CCCCCC" 
  60.             BorderStyle="Solid" BorderWidth="1px" ForeColor="#333333" />
  61.         <PartChromeStyle BackColor="#E3EAEB" BorderColor="#C5BBAF" Font-Names="Verdana" 
  62.             ForeColor="#333333" />
  63.         <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
  64.         <MenuLabelStyle ForeColor="#333333" />
  65.     </asp:WebPartZone>
  66. </td>
  67. </tr>
  68.  
  69. <tr>
  70. <td>
  71.     <asp:WebPartZone ID="WebPartZone3" runat="server" BorderColor="#CCCCCC" 
  72.         Font-Names="Verdana" Padding="6">
  73.         <EmptyZoneTextStyle Font-Size="0.8em" />
  74.         <PartStyle Font-Size="0.8em" ForeColor="#333333" />
  75.         <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
  76.         <MenuLabelHoverStyle ForeColor="Yellow" />
  77.         <MenuPopupStyle BackColor="#1C5E55" BorderColor="#CCCCCC" BorderWidth="1px" 
  78.             Font-Names="Verdana" Font-Size="0.6em" />
  79.         <MenuVerbStyle BorderColor="#1C5E55" BorderStyle="Solid" BorderWidth="1px" 
  80.             ForeColor="White" />
  81.         <PartTitleStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="0.8em" 
  82.             ForeColor="White" />
  83.         <ZoneTemplate>
  84.             <asp:TextBox ID="TextBox1" runat="server" Height="52px" 
  85.                 ontextchanged="TextBox1_TextChanged" Width="206px"></asp:TextBox>
  86.             <asp:Button ID="Button1" runat="server" Text="Button" />
  87.         </ZoneTemplate>
  88.         <MenuVerbHoverStyle BackColor="#E3EAEB" BorderColor="#CCCCCC" 
  89.             BorderStyle="Solid" BorderWidth="1px" ForeColor="#333333" />
  90.         <PartChromeStyle BackColor="#E3EAEB" BorderColor="#C5BBAF" Font-Names="Verdana" 
  91.             ForeColor="#333333" />
  92.         <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
  93.         <MenuLabelStyle ForeColor="#333333" />
  94.     </asp:WebPartZone>
  95. </td>
  96. <td>
  97.     <asp:WebPartZone ID="WebPartZone4" runat="server" BorderColor="#CCCCCC" 
  98.         Font-Names="Verdana" Height="125px" Padding="6" Width="232px">
  99.         <EmptyZoneTextStyle Font-Size="0.8em" />
  100.         <PartStyle Font-Size="0.8em" ForeColor="#333333" />
  101.         <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
  102.         <MenuLabelHoverStyle ForeColor="Yellow" />
  103.         <MenuPopupStyle BackColor="#1C5E55" BorderColor="#CCCCCC" BorderWidth="1px" 
  104.             Font-Names="Verdana" Font-Size="0.6em" />
  105.         <MenuVerbStyle BorderColor="#1C5E55" BorderStyle="Solid" BorderWidth="1px" 
  106.             ForeColor="White" />
  107.         <PartTitleStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="0.8em" 
  108.             ForeColor="White" />
  109.         <ZoneTemplate>
  110.             <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx" 
  111.                 Target="_blank">page</asp:HyperLink>
  112.         </ZoneTemplate>
  113.         <MenuVerbHoverStyle BackColor="#E3EAEB" BorderColor="#CCCCCC" 
  114.             BorderStyle="Solid" BorderWidth="1px" ForeColor="#333333" />
  115.         <PartChromeStyle BackColor="#E3EAEB" BorderColor="#C5BBAF" Font-Names="Verdana" 
  116.             ForeColor="#333333" />
  117.         <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
  118.         <MenuLabelStyle ForeColor="#333333" />
  119.     </asp:WebPartZone>
  120. </td>
  121. </tr>
  122. </table>    
  123.     </div>
  124.     </form>
  125. </body>
  126. </html>
  127.  
  128.  
Oct 16 '10 #3
bansari
20
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.

Expand|Select|Wrap|Line Numbers
  1.  
  2. <connectionStrings>
  3.         <clear/>
  4.         <add name="LocalSqlServer" connectionString="data source=xxx.xxx.xxx.xxx;database=test;user id =sa ;password=xxxxxx;"/>
  5.     </connectionStrings>
  6.     <appSettings>
  7.         <add key="connectionString" value="data source=xxx.xxx.xxx.xxx;database=test;user id =sa ;password=xxxxxx;"/>
  8.  
  9.     </appSettings>
  10.  
Nov 10 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Javier Cortés Cortés | last post by:
i am getting this error when i am trying to access any file(with the ext. aspx) from my remote server. the error is : Server Error in '/' Application....
2
by: Regus | last post by:
When I publish my website on my host, i got this error. My web.config file does have the customError-tag on "remoteOnly", but still i get this error. Any idea what the problem is ? Server...
4
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the...
0
by: Darren | last post by:
Hi, I get the above error message when I try to run my page on the remote server. As I am a newbie with .net, I chose Project | Copy to copy the files needed to a seperate local directory then...
3
by: abcd | last post by:
I get following error. I have 2 simple text boxes and requiresValidator control attached to them. When run on development machine is works when deployed on production server I get following errors....
12
by: Kevin Farless | last post by:
Hi all, I'm having trouble viewing any .aspx pages on my hosting company's server. The server is a new box running Windows Server 2003 default installation. I'm the first client to try using...
5
by: Lara | last post by:
Hi, I am getting the following error. All the files are stored in a directory named 'web' as told by the Server Administrtor can anyone help me Server Error in '/' Application....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.