Click here to Skip to main content
15,917,328 members
Home / Discussions / C#
   

C#

 
GeneralRe: enum problem in C# Pin
Gareth H25-Mar-08 4:54
Gareth H25-Mar-08 4:54 
GeneralRe: enum problem in C# Pin
Guffa25-Mar-08 5:11
Guffa25-Mar-08 5:11 
GeneralRe: enum problem in C# Pin
Pete O'Hanlon25-Mar-08 5:14
mvePete O'Hanlon25-Mar-08 5:14 
GeneralRe: enum problem in C# Pin
Gareth H25-Mar-08 5:43
Gareth H25-Mar-08 5:43 
GeneralRe: enum problem in C# Pin
Daniel Grunwald25-Mar-08 18:21
Daniel Grunwald25-Mar-08 18:21 
QuestionHow to Set multiple items as selected in a ListBox with c# [modified] Pin
waldj200025-Mar-08 2:44
waldj200025-Mar-08 2:44 
GeneralRe: How to Set multiple items as selected in a ListBox with c# Pin
Vimal Raj25-Mar-08 3:54
Vimal Raj25-Mar-08 3:54 
GeneralUse Multiple Sitemap file in ASP.NET Problem Pin
SathyaSiva25-Mar-08 2:41
SathyaSiva25-Mar-08 2:41 
Hi,

I am using two sitemaps.I wrote code like this

web.sitemap
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Default.aspx" title="" description="Home">
<siteMapNode url="Default.aspx" title="Computer" description="Computer" >
<siteMapNode url="Default.aspx" title="Laptop" description="Laptop" />
<siteMapNode url="Default.aspx" title="Desktop" description="Desktop" />
</siteMapNode>
</siteMapNode>
</siteMap>


web1.sitemap
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="User" description="User">
<siteMapNode url="" title="Forgot Password" description="Forgot Password" />
<siteMapNode url="" title="Change Password" description="Change Password" />
<siteMapNode url="" title="Login" description="Login" />
</siteMapNode>
</siteMap>



Web.config

<siteMap enabled="true">
<providers>
<add name="Example" type="System.Web.XmlSiteMapProvider" sitemapfile="~/Web.sitemap"/>
<add name="Example1" type="System.Web.XmlsitemapProvider" sitemapfile="~/Web2.sitemap"/>
</providers>
</siteMap>


.aspx page
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" SiteMapProvider="Example" />


It showing following error

Server Error in '/MultipleSitemap' Application.
The attribute 'sitemapfile' is unexpected in the configuration of the 'Example' provider.
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: The attribute 'sitemapfile' is unexpected in the configuration of the 'Example' provider.

Source Error:

[No relevant source lines]


Source File: c:\Documents and Settings\system3\Local Settings\Temp\Temporary ASP.NET Files\multiplesitemap\85793d13\552d1a9d\App_Web_dbjhdcj7.0.cs Line: 0


How to solve this?
anyone help me please.
GeneralRe: Use Multiple Sitemap file in ASP.NET Problem Pin
Pete O'Hanlon25-Mar-08 3:01
mvePete O'Hanlon25-Mar-08 3:01 
GeneralRe: Use Multiple Sitemap file in ASP.NET Problem Pin
SathyaSiva25-Mar-08 3:09
SathyaSiva25-Mar-08 3:09 
GeneralClient Application Services... Pin
Illegal Operation25-Mar-08 2:34
Illegal Operation25-Mar-08 2:34 
GeneralUse Multiple Sitemap file in ASP.NET Problem Pin
SathyaSiva25-Mar-08 2:30
SathyaSiva25-Mar-08 2:30 
GeneralUse Multiple Sitemap file in ASP.NET Pin
SathyaSiva25-Mar-08 2:28
SathyaSiva25-Mar-08 2:28 
QuestionCom interop -&gt; IUnknown from hWnd Pin
Chris Mierzejewski25-Mar-08 1:55
Chris Mierzejewski25-Mar-08 1:55 
QuestionWhat Process at which port? Pin
ptr2void25-Mar-08 1:07
ptr2void25-Mar-08 1:07 
GeneralGenerate Not Repeated Random Integer Values Pin
Edwin Syarief25-Mar-08 0:06
Edwin Syarief25-Mar-08 0:06 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Gareth H25-Mar-08 0:14
Gareth H25-Mar-08 0:14 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Christian Graus25-Mar-08 0:18
protectorChristian Graus25-Mar-08 0:18 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Christian Graus25-Mar-08 0:15
protectorChristian Graus25-Mar-08 0:15 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Vikram A Punathambekar25-Mar-08 2:31
Vikram A Punathambekar25-Mar-08 2:31 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Russell Jones25-Mar-08 3:51
Russell Jones25-Mar-08 3:51 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Christian Graus25-Mar-08 10:03
protectorChristian Graus25-Mar-08 10:03 
QuestionCreate a grid of radiobutton on the fly Pin
Desmond Lim24-Mar-08 23:59
Desmond Lim24-Mar-08 23:59 
GeneralRe: Create a grid of radiobutton on the fly Pin
Gareth H25-Mar-08 0:07
Gareth H25-Mar-08 0:07 
QuestionRe: Create a grid of radiobutton on the fly Pin
Desmond Lim26-Mar-08 16:46
Desmond Lim26-Mar-08 16:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.