CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 4/26/2007 12:54:10 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 27 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
iperez_genius
Asp.Net User
XmlSiteMapProvider - Troubleshooting4/26/2007 12:54:10 AM

0/0

I made a simple navigation tree...for my site.

 

It works 100% offline but online i am receiving the error below.

 

Firstly,  why will soemthing work offline but not online?

 

Secondly and more importantly, how do i fix my problem?
 

 

 

Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

Line 17: 	<system.web>
Line 18: 
Line 19:     <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
Line 20:       <providers>
Line 21:         

 

 

my web.config file

 

    <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
      <providers>
        <add name="XmlSiteMapProvider" 
             description="SiteMap provider which reads in .sitemap XML files." 
             type="System.Web.XmlSiteMapProvider" 
             siteMapFile="Web.sitemap" 
             securityTrimmingEnabled="true"/>
      </providers>
    </siteMap>
  
Zhao Ji Ma - MS
Asp.Net User
Re: XmlSiteMapProvider - Troubleshooting4/27/2007 1:36:52 PM

0/0

iperez_genius:

It works 100% offline but online i am receiving the error below.

Firstly,  why will soemthing work offline but not online?

Hi,

I think you might have some misunderstanding. The ASP.NET pages are "rendered" by the web server and the HTML source code is send back to the browsers to "display". The situation that you are able to "display" it in browser when it is offline means that the page was successfully "rendred" previously from the web server before, so it should be online then and the browser is only able to get the results from the web server only when they are connected. When your computer is changed to offline, the working copy should be retrieved from browser cache or it had been saved locally. I think the reason why you get error when you try to connect to the server again is that the server's configuration might have been changed and contains error.

Can you provide your full-lis of web.config files. According to the error message, you have some configuration error in this file and the one provide looks like a section of the file.

Hope it helps.


Zhao Ji Ma
Sincerely,
Microsoft Online Community Support

?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?
JoshDCrosby
Asp.Net User
Re: XmlSiteMapProvider - Troubleshooting5/1/2007 8:20:48 AM

0/0

I am having the exact same problem. I have been searching for an answer for over 5 hours now. Scenario, I'm not using IIS - I'm using the default IIS-lite that is built into VS.NET 2005. I have one web.config and have tried <location> and another web.config which you should be able to do according to the docs but get the above allowDefinition="MachineToApplication" error. Browsing to the root/default.aspx works great, it only blows up after entering "TheScoop/Default.aspx"

Directory Structure

Root
    TheScoop
        Default.aspx

Here is the root web.config

1    
2    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
3    	<appSettings/>
4    	<connectionStrings/>
5    	<location path="TheScoop">
6    		<system.web>
7    			<siteMap defaultProvider="siteMapHeader1">
8    				<providers>
9    					<clear />
10   					<add name="siteMapHeader1"
11   						description="The Scoop SiteMap provider."
12   						type="DevExpress.Web.ASPxSiteMapControl, DevExpress.Web.v7.1, Version=7.1.2.0, Culture=neutral, PublicKeyToken=79868B8147B5EAE4"
13   						siteMapFile="~/App_Data/TheScoop.sitemap"
14   						securityTrimmingEnabled="true" />
15   				</providers>
16   			</siteMap>
17   		</system.web>
18   	</location>
19   
20   	<system.web>
21   		<compilation debug="true">
22   			<assemblies>
23   				<add assembly="DevExpress.Web.v7.1, Version=7.1.2.0, Culture=neutral, PublicKeyToken=79868B8147B5EAE4" />
24   				<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
25   				<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
26   			</assemblies>
27   		</compilation>
28   		<authentication mode="None"/>
29   	</system.web
30
</configuration>

 Here you can see I'm using the <location> tag and really nothing special here. Here is a sample of the web.config for "TheScoop" directory - keep in mind that I comment out the <location> tag when I try this. Also this is under the "TheScoop" directory.

1    
2    <!-- 
3        Note: As an alternative to hand editing this file you can use the 
4        web admin tool to configure settings for your application. Use
5        the Website->Asp.Net Configuration option in Visual Studio.
6        A full list of settings and comments can be found in 
7        machine.config.comments usually located in 
8        \Windows\Microsoft.Net\Framework\v2.x\Config 
9    -->
10   <configuration>
11   	<system.web>
12   		<siteMap defaultProvider="siteMapHeader1">
13   			<providers>
14   			<clear />
15   				<add name="siteMapHeader1"
16   				  description="The Scoop SiteMap provider."
17   				  type="DevExpress.Web.ASPxSiteMapControl, DevExpress.Web.v7.1, Version=7.1.2.0, Culture=neutral, PublicKeyToken=79868B8147B5EAE4"
18   				  siteMapFile="~/App_Data/TheScoop.sitemap"
19   				  securityTrimmingEnabled="true" />
20   			</providers>
21   		</siteMap>
22   	</system.web>
23   </configuration>


Here is the error produced.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

Line 5:  	<location path="TheScoop">
Line 6:  		<system.web>
Line 7:  			<siteMap defaultProvider="siteMapHeader1">
Line 8:  				<providers>
Line 9:  					<clear />


Source File: C:\Documents and Settings\jcrosby\My Documents\Visual Studio 2005\Projects\ScoopologyWeb\ScoopologyWeb\web.config    Line: 7

I have tried "right-clicking" on "TheScoop" folder to "Convert to Web Application" in the Solution Explorer and that seems to do nothing.

Thanks for all the help in advance

Josh

 PS. For some reason pasting the code has eliminated the first line of code.

iperez_genius
Asp.Net User
Re: XmlSiteMapProvider - Troubleshooting5/2/2007 2:05:03 AM

0/0

I can't solve your problem but i can sympathise with you...

I didn't solve my problem and resolved to moving into a CSS solution for my menus, which in my opinion are better anyway.

If you are not new to vs2005 i need some serious help trying to connect my website to a sql db and i can't get it to run

if you could either email, message or msn me i would apprecaite it.

[email protected]

Ilan
 

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
EXECUTE permission denied on object 'aspnet_CheckSchemaVersion ... I can follow a tutorial but I am poor at troubleshooting because I don't know what .... XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, ...
Nine ASP.NET Site Navigation Problem Solutions: Part 2 ..... SQL Server Books Online contains a section about Troubleshooting Query Notifications. ...
Stefan Goßner : Troubleshooting SPSite/SPWeb leaks in WSS v3 and ... Stefan has a good article on troubleshooting leaks in your WSS and MOSS ... the XML file which can then be used by the standard ASPNET XML sitemap provider. ...
CodeProject: Stop editing 'web.sitemap'--Let unknown pages ... NET XmlSiteMapProvider , your web.config file will contain a section .... Troubleshooting. If you have problems, it would be first nice to confirm that ...
Microsoft Expression Menu XmlSiteMapProvider.FindSiteMapNode(String rawUrl) +37 System.Web.SiteMapProvider . .... Makes troubleshooting ever so much easier. ;-) ...
Cuyahoga - Forum <add name="XmlSiteMapProvider" description="SiteMap provider which reads in ... Cuyahoga, - General, - Installation/Troubleshooting ...
MOSS « Mark Gilbert’s Blog XmlSiteMapProvider. “siteMapFile” is the name of the file itself. ..... directly on the server using Notepad, just to make the troubleshooting go faster. ...
Internationalization Setting - SQL server 2005 - SQL Server - Index Please tell me what is the cause of this or at least how to troubleshoot this problem .... XmlSiteMapProvider" siteMapFile="web.sitemap"/> Multiple Sitemap Configuration - MSDN Forums you need to replace "XmlSiteMapProvider" with the name of the provider you want to be .... Microsoft Robotics - Hardware Configuration and Troubleshooting ...
James Kovacs' Weblog - ASP.NET




Search This Site:










how do i send email notification based on "authorisedviewroles" of module ?

users and roles without sql server database

tab security

asp.net v2

all solpart menus rendering only in top left corner of screen

add deployment project menu missing

core projects have slow releases..

file paths within a custom modules

what are the consequences of setting e.cancel to true in the membership sendingmail event handlers?

treeview problem in asp.net 1.1

login

error loading module - dnn - please help!?

asp net onload event problem

http 403 forbidden

registration problem show stopper...

how to set up asp.net authentication with 2 different login forms?

how to study the source code

vwd was serving pages - i don't know what happend, but now i just have permissions problem

formsauthentication.hashpasswordforstoringinconfigfile()

where can i get gallery module

how to show sitemap information

ie web control - tabstrip displaying plain text

profile. as usual ...

hosting: portal disk space - file upload error

editurl by moduleid?

password recovery control

dnn 3.0.10 - pressing enter key behavior

font is too small (3) or font is too big (4)

shopping cart username!!!

how can i improve calendar functionalities?

 
All Times Are GMT