Subject: Chapter 3 Sitemap Path Control try it out
Posted By: Jeshon Post Date: 1/22/2006 12:51:28 AM
Hi,

I am getting the configuration error when trying to launch the Default.aspx after using the sitemappath control. I have copy and pasted the error message below. Please help me to make the necessary changes to make it work correctly. Thank you very much.

Error Message:
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 39:             Set forms authentication and define the login page
Line 40:         -->
Line 41:     <authentication mode="Forms">
Line 42:       <forms loginUrl="Default.aspx" />
Line 43:     </authentication>
 

Source File: D:\downloads\ASP_20_codes\Begin\Chapter03\wroxunited\web.config    Line: 41

Reply By: Chrisull Reply Date: 1/27/2006 11:44:27 AM
Hi,
    This is an IIS configuration error. Basically the application hasn't been correctly figured as virtual directory or some part of it. I'd suggest checking out Appendix B which describes how to configure IIS and these two threads:

http://p2p.wrox.com/topic.asp?TOPIC_ID=38426

and

http://p2p.wrox.com/topic.asp?TOPIC_ID=37465

which go into a lot more detail on some of the issues you might encounter. I'm in the process of rewriting this appendix for the C# version of the book in light of all the issues that have since arisen. I will make it available online for people to download here too, as it's basically a "cross-language" appendix anyway.

Chris

Chris Ullman
Programmer/Technical Author
http://www.cuasp.co.uk

Go to topic 38573

Return to index page 384
Return to index page 383
Return to index page 382
Return to index page 381
Return to index page 380
Return to index page 379
Return to index page 378
Return to index page 377
Return to index page 376
Return to index page 375