Wrox Programmer Forums
|
BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5
This is the forum to discuss the Wrox book Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter Kit by David Sussman, Alex Homer; ISBN: 9780764588075
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 8th, 2006, 04:31 PM
Registered User
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Example will not work in the real world

Hello to all!

I purchased the book only to my dismay finding out that nowhere it is discussed as to how to deploy the ppq website on a real world shared hosting server.

I am trying to use the completed example which runs fine on my pc upon de-bugging with VWD Express, but I get the following error when I post to my server.......


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="AspXmlSiteMapProvider" enabled="true">
Line 20: <providers>
Line 21: <clear/>


Source File: C:\Domains\MyDomain.com\wwwroot\ppq\web.config Line: 19

Can anyone please help me fix this problem.

Thanks in advance!
El Morenito
 
Old October 8th, 2006, 04:51 PM
Authorized User
 
Join Date: Jan 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You must create a folder for the application, and then use IIS Manager to configure the folder as a virtual directory. ASP.NET then recognizes it as an application root folder, and allows the site map provider definition.

In shared hosting environments, be aware that the machine administrator may use configuration settings at machine level to prevent you specifying certain application settings. However, I would not expect them to prevent use of a site map provider.
 
Old October 12th, 2006, 01:18 PM
Registered User
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply.

Through my host's helm control panel I set that directory as a virtual on, but to no avail. Can you or anyone help?

TIA
El Morenito






Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP "Hello World" Bill_Thompson ASP.NET 2.0 Basics 3 December 14th, 2007 09:38 AM
GRPS "Hello World" rodmcleay C# 0 October 11th, 2005 10:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.