Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 1st, 2009, 02:43 PM
Authorized User
 
Join Date: Sep 2009
Posts: 23
Thanks: 9
Thanked 1 Time in 1 Post
Default <deployment retail="true"> clarification

Imar,

In chapter 18 on page 662 you mention to consider setting the retail attribute of the deployment element within the machine.config to true as follows:

Code:
<deployment retail="true">
Feel free to correct me If I'm wrong, but won't the attributes set within the web.config for compilation, customErrors, and trace override what's in the machine.config? Or in order to do so would you need to utilize a <clear /> element as such in the example at the bottom of page 660 for the compilation, customErrors, and trace elements within the web.config to override the settings in the machine.config?

Not that it would happen on a production box, but what if you had a legitimate need to override the settings in the machine.config within the web.config for say just one out of ten websites hosted on a server.

I'm hoping you could clarify this for me.

Thanks,

John
 
Old October 1st, 2009, 02:48 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi John,

Many settings from machine.config can be overriden by a web.config at the site level. However, the retail attribute is set up not to allow that. if you try it, you get the following error:

It is an error to use a section registered as allowDefinition='MachineOnly' beyond machine.config.

The retail attributes overwrite whatever you set for the other attributes and you can't change that. So, with retail set to true, it will change all these settings for all sites. If you need to change it for a single site, you need to set it to false first....

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
jsymons (October 2nd, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM
<authentication mode="Forms"/> msman88 ASP.NET 3.5 Professionals 10 August 30th, 2009 08:57 AM
Code not going as planned: "icicle" vs "savedinstancestate" joopthecat BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 3 May 3rd, 2009 03:09 PM
AutoEventWireup = "true" member4953 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 March 25th, 2009 09:45 AM





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