I have 3 error in my web
I dont now where is the wrong
(the Error in guestbook page and students page )
when I run the (guestbook page) the browser write
Server Error in '/WebSite6' Application.
--------------------------------------------------------------------------------
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /WebSite6/guestboob.aspx
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
and when I run ( students page ) the browser writ
Server Error in '/WebSite6' Application.
--------------------------------------------------------------------------------
Multiple nodes with the same URL '/WebSite6/Home.aspx' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.ConfigurationerrorsException: Multiple nodes with the same URL '/WebSite6/Home.aspx' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.
Source Error:
[No relevant source lines]
Source File: c:\Users\Vista\AppData\Local\Temp\Temporary ASP.NET Files\website6\dfdebf4d\b68d2bac\App_Web_students.aspx.cdcab7d2.4twvslzg.0.cs Line: 0
Stack Trace:
[ConfigurationerrorsException: Multiple nodes with the same URL '/WebSite6/Home.aspx' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.]
System.Web.XmlSiteMapProvider.AddNodeInternal(SiteMapNode node, SiteMapNode parentNode, XmlNode xmlNode) +618
System.Web.XmlSiteMapProvider.ConvertFromXmlNode(Queue queue) +315
System.Web.XmlSiteMapProvider.BuildSiteMap() +1161
System.Web.StaticSiteMapProvider.FindSiteMapNode(String rawUrl) +143
System.Web.XmlSiteMapProvider.FindSiteMapNode(String rawUrl) +37
System.Web.SiteMapProvider.FindSiteMapNode(HttpContext context) +49
System.Web.SiteMapProvider.get_CurrentNode() +32
System.Web.SiteMapProvider.GetCurrentNodeAndHintAncestorNodes(Int32 upLevel) +14
System.Web.UI.WebControls.SiteMapPath.CreateControlHierarchy() +53
System.Web.UI.WebControls.SiteMapPath.CreateChildControls() +29
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +50
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7248
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.students_aspx.ProcessRequest(HttpContext context) in c:\Users\Vista\AppData\Local\Temp\Temporary ASP.NET Files\website6\dfdebf4d\b68d2bac\App_Web_students.aspx.cdcab7d2.4twvslzg.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
Please hellp me I have to finish it today ( it is 50 marks )
Please its verry Important
I have an error in my webHellp me fast Please
Page 1 of 1
9 Replies - 8368 Views - Last Post: 24 May 2008 - 05:21 AM
Replies To: I have an error in my web
#2
Re: I have an error in my web
Posted 23 May 2008 - 07:05 AM
Did you spell guestbook right? Your error says "guestboob"
#3
Re: I have an error in my web
Posted 23 May 2008 - 07:10 AM
the code of the ( guestbook page ) is
and the code of the ( students Page ) is
so please tell me where is the wrong
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="guestbook.aspx.cs" Inherits="Master" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <script language="javascript" type="text/javascript"> // <!CDATA[ function TABLE1_onclick() { } // ]]> </script> <table style="width: 390px; height: 270px"> <tr> <td colspan="3" style="height: 32px; text-align: center"> <span style="color: #ff0000"><span style="font-size: 16pt"> <span style="color: #ff9900">Thank you for your Interesting</span></span></span></td> </tr> <tr> <td style="width: 7px; text-align: left"> Name :</td> <td colspan="2" style="width: 223px"> <asp:TextBox ID="TextBox1" runat="server" Width="330px"></asp:TextBox></td> </tr> <tr> <td style="width: 7px; text-align: left"> Email :</td> <td colspan="2" style="width: 223px"> <asp:TextBox ID="TextBox2" runat="server" Width="330px"></asp:TextBox></td> </tr> <tr> <td colspan="3" style="height: 27px; text-align: left"> How did you find us :</td> </tr> <tr> <td colspan="3" style="height: 22px; text-align: left"> <asp:CheckBoxList ID="CheckBoxList1" runat="server"> <asp:ListItem>Friends</asp:ListItem> <asp:ListItem>Search</asp:ListItem> <asp:ListItem>Visite it</asp:ListItem> <asp:ListItem>From Work</asp:ListItem> </asp:CheckBoxList></td> </tr> <tr> <td colspan="3" style="text-align: left"> Did you like the site ?</td> </tr> <tr> <td colspan="3" style="text-align: left"> <asp:RadioButtonList ID="RadioButtonList1" runat="server"> <asp:ListItem Selected="True">Yes</asp:ListItem> <asp:ListItem>No</asp:ListItem> </asp:RadioButtonList></td> </tr> <tr> <td colspan="3" style="text-align: left"> Comment :</td> </tr> <tr> <td colspan="3" style="height: 86px; text-align: left"> <textarea id="TextArea1" style="width: 380px; height: 70px"></textarea></td> </tr> </table> </asp:Content>
and the code of the ( students Page ) is
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="students.aspx.cs" Inherits="_Default" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <br /> <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="DB" DataTextField="FullName" DataValueField="Student_ID"> </asp:DropDownList><asp:SqlDataSource ID="DB" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT First_name, Last_Name, Year, Major, GPA FROM Students"> </asp:SqlDataSource> <br /> <br /> <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" CellPadding="4" DataSourceID="DB" ForeColor="#333333" GridLines="None" Height="50px" Width="125px"> <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /> <CommandRowStyle BackColor="#C5BBAF" Font-Bold="True" /> <RowStyle BackColor="#E3EAEB" /> <FieldHeaderStyle BackColor="#D0D0D0" Font-Bold="True" /> <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /> <EditRowStyle BackColor="#7C6F57" /> <AlternatingRowStyle BackColor="White" /> </asp:DetailsView> </asp:Content>
so please tell me where is the wrong
#4
Re: I have an error in my web
Posted 23 May 2008 - 07:58 AM
Your first error is a type, this is displaying in the first error
Shouldn't that be guestbook.aspx, not guestboob.aspx? The 2nd error is telling you that your XmlSiteMap has more than 1 node with the same URL, which isnt allowed
Quote
Requested URL: /WebSite6/guestboob.aspx
Shouldn't that be guestbook.aspx, not guestboob.aspx? The 2nd error is telling you that your XmlSiteMap has more than 1 node with the same URL, which isnt allowed
#5
Re: I have an error in my web
Posted 23 May 2008 - 09:22 AM
PsychoCoder, on 23 May, 2008 - 07:58 AM, said:
Your first error is a type, this is displaying in the first error
Shouldn't that be guestbook.aspx, not guestboob.aspx? The 2nd error is telling you that your XmlSiteMap has more than 1 node with the same URL, which isnt allowed
Quote
Requested URL: /WebSite6/guestboob.aspx
Shouldn't that be guestbook.aspx, not guestboob.aspx? The 2nd error is telling you that your XmlSiteMap has more than 1 node with the same URL, which isnt allowed
Thanks mr
but in my first error I search for any words like ( guestboob ) but I didnt find it
and to make sure I delete this page and Im programming it from the start and run it but the problem still here
and in the second error I never add more than 1 Url for ( students ) page
hellp me pleas I have give it to my teacher today


#6
Re: I have an error in my web
Posted 23 May 2008 - 11:59 AM
Quote
hellp me pleas I have give it to my teacher today
We are helping you, so you can quit asking for help.
Post the SiteMap and try doing a complete Rebuild of the website.
#7
Re: I have an error in my web
Posted 23 May 2008 - 02:51 PM
this is the Code of the ( siteMap )
and this is the code of ( Web Config )
thank you so much , and waiting for your reply
<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="Home.aspx" title="Home Page" description="maine page"> <siteMapNode url="~/Home.aspx" title="Home Page" description="maine page" /> <siteMapNode url="~/CantactUs.aspx" title="Cantact us" description="" /> <siteMapNode url="~/guestbook" title="guest book" description="" /> <siteMapNode url="~/Schedular.aspx" title="schedular" description="" /> <siteMapNode url="~/students.aspx" title="students" description="" /> </siteMapNode> </siteMap>
and this is the code of ( Web Config )
<?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration> <appSettings/> <connectionStrings> <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <siteMap> <providers> <remove name="AspNetXmlSiteMapProvider"/> <add name="AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider,System.web,Version=1.2.3400.0,Culture=neutral,PublickeyToken=b03f5f7f11d50a3a" securityTrimmingEnabled="true" siteMapFile="web.sitemap"/> </providers> </siteMap> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <compilation debug="true"/> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Windows"/> <!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> --> </system.web> </configuration>
thank you so much , and waiting for your reply
#8
Re: I have an error in my web
Posted 23 May 2008 - 03:01 PM
Sighs. You apparently didn't check the URL's of your SiteMap, as PsychoCoder suggested. As you can clearly see, you have two siteMapNodes with the same URL. Each URL must be unique. In addition, you are missing the ".aspx" from the "guestbook" page in the siteMapNode.
Should be like this:
It is difficult to help you, if you choose to ignore the advice that our members are providing you. Especially, when they are providing the correct answer.
<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="Home.aspx" title="Home Page" description="maine page"> <siteMapNode url="~/Home.aspx" title="Home Page" description="maine page" /> <siteMapNode url="~/CantactUs.aspx" title="Cantact us" description="" /> <siteMapNode url="~/guestbook" title="guest book" description="" /> <siteMapNode url="~/Schedular.aspx" title="schedular" description="" /> <siteMapNode url="~/students.aspx" title="students" description="" /> </siteMapNode> </siteMap>
Should be like this:
<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="~/Home.aspx" title="Home Page" description="maine page" /> <siteMapNode url="~/CantactUs.aspx" title="Cantact us" description="" /> <siteMapNode url="~/guestbook.aspx" title="guest book" description="" /> <siteMapNode url="~/Schedular.aspx" title="schedular" description="" /> <siteMapNode url="~/students.aspx" title="students" description="" /> </siteMap>
It is difficult to help you, if you choose to ignore the advice that our members are providing you. Especially, when they are providing the correct answer.
#9
Re: I have an error in my web
Posted 23 May 2008 - 06:52 PM
jayman9, on 23 May, 2008 - 03:01 PM, said:
Sighs. You apparently didn't check the URL's of your SiteMap, as PsychoCoder suggested. As you can clearly see, you have two siteMapNodes with the same URL. Each URL must be unique. In addition, you are missing the ".aspx" from the "guestbook" page in the siteMapNode.
Should be like this:
It is difficult to help you, if you choose to ignore the advice that our members are providing you. Especially, when they are providing the correct answer.
<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="Home.aspx" title="Home Page" description="maine page"> <siteMapNode url="~/Home.aspx" title="Home Page" description="maine page" /> <siteMapNode url="~/CantactUs.aspx" title="Cantact us" description="" /> <siteMapNode url="~/guestbook" title="guest book" description="" /> <siteMapNode url="~/Schedular.aspx" title="schedular" description="" /> <siteMapNode url="~/students.aspx" title="students" description="" /> </siteMapNode> </siteMap>
Should be like this:
<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="~/Home.aspx" title="Home Page" description="maine page" /> <siteMapNode url="~/CantactUs.aspx" title="Cantact us" description="" /> <siteMapNode url="~/guestbook.aspx" title="guest book" description="" /> <siteMapNode url="~/Schedular.aspx" title="schedular" description="" /> <siteMapNode url="~/students.aspx" title="students" description="" /> </siteMap>
It is difficult to help you, if you choose to ignore the advice that our members are providing you. Especially, when they are providing the correct answer.
just a little helper point off jayman, you typed this: <siteMapNode url= "~/guestbook" title=".......
when infact it should have been what jayman put. Fix those errors and try again

Page 1 of 1