473,586 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web.config - site map path

when i past the following code in web.config file it says attributes are not
declaired

<siteMap defaultProvider ="XmlSiteMapPro vider" enabled="true">
<providers>
<add name="XmlSiteMa pProvider"
description="Si teMap provider which reads in .sitemap XML
files."
type="System.We b.XmlSiteMapPro vider, System.Web,
Version=2.0.360 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
siteMapFile="we b.sitemap"
securityTrimmin gEnabled="true"/>
</providers>
</siteMap>
<compilation defaultLanguage ="C#"/>
thnx
Nov 19 '05 #1
1 6878
The provider model allows for arbitrary attributes when you configure them.
The web.config XML schema can't possibly know every attribute that will ever
be used, so it's misleading. It should run fine, and that's the important
thing.

-Brock
DevelopMentor
http://staff.develop.com/ballen
when i past the following code in web.config file it says attributes
are not declaired

<siteMap defaultProvider ="XmlSiteMapPro vider" enabled="true">
<providers>
<add name="XmlSiteMa pProvider"
description="Si teMap provider which reads in .sitemap XML
files."
type="System.We b.XmlSiteMapPro vider, System.Web,
Version=2.0.360 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
siteMapFile="we b.sitemap"
securityTrimmin gEnabled="true"/>
</providers>
</siteMap>
<compilation defaultLanguage ="C#"/>
thnx


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2344
by: Craig | last post by:
I've developed an single sign on web application that we'd like to use with all the applications we're developing. The application's connection string is stored in web.config. I've gotten some basic functionality worked out and I'm attempting to test it on another application, whose connections string to another database is also stored in...
5
338
by: WFB | last post by:
Hi, I have an application with a couple of referenced assemblies. The referenced assemblies and my application all share a few configuration settings with the same name but different values. Is there a way to set up the config file to recognize this? Im thinking <section name> elements, but am not having much luck. Thanks, Joe
3
2157
by: Natan | last post by:
I have an directory structure like this: localhost/site/myapp localhost/site/myapp/author/ localhost/site/myapp/revisor/ localhost/site/myapp/editor/ localhost/site/myapp/admin/ myapp is an application and is where my web.config is located. I must create 4 completely separated areas for authors, revisors, and editor
10
2191
by: mike | last post by:
Is it possible to move the web.config out of the application folder? I would like it off somewhere out of the web directory
6
2470
by: Mikey_Doc | last post by:
Hi We are running cms 2002, Framework 1.0 with Visual studio 2002. We have just upgraded to Framework 1.1 and visual studio 2003. All of our database connection strings are stored within the machine config, this was necessary as our web site has 4 environments and the database server has a different name in each. Since the upgrade the...
6
11758
by: openleren | last post by:
Hi all, how can I use a relative path in my web.config file for an Access db?: Instead of using <configuration> <appSettings> <add key="conAccess" value="microsoft.jet.oledb.4.0;data source=c:/Inetpub/MyApp/data/database.mdb" /> ...
12
4732
by: Ben | last post by:
I have a group of settings that I'd like to have inherited by multiple sites. I'm trying this, but it's not working. wwwroot\group\web.config wwwroot\group\site1\web.config wwwroot\group\site2\web.config Where site1 & site2 are applications.
2
2504
by: Arpan | last post by:
What exactly are configuration section handlers in a web.config file? How would you define them & what for are they used in web.config files? Is it a must for web.config files to have handlers? An example of handlers in a web.config file would be highly appreciated. Thanks, Arpan
5
1072
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I need to access the web.config file in a class. I am now using the line: rootWebConfig1 = WebConfigurationManager.OpenWebConfiguration("~") to get a reference to the config file. The question is the correct way to get the config file in classes. There is only one config file and it is in the root of the web site. I do not want to use a...
5
9102
by: gr8Ashish | last post by:
hi all i am using a windows application as well as web application developed in visual studio 2010 beta 2 using .net framework 4 on windows xp/windows server 2008/windows7 i am able to read web.config file on system running windows XP sp2 but same is not read by windows 7 and windows server 2008 i installed my web...
0
7915
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7841
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7965
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6617
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1184
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.