Wrox Programmer Forums
|
BOOK: Professional DotNetNuke ASP.NET Portals ISBN: 0-7645-9563-6
This is the forum to discuss the Wrox book Professional DotNetNuke ASP.NET Portals by Shaun Walker, Patrick J. Santry, Joe Brinkman, Dan Caron, Scott McCulloch, Scott Willhite, Bruce Hopkins; ISBN: 9780764595639
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional DotNetNuke ASP.NET Portals ISBN: 0-7645-9563-6 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 July 28th, 2005, 03:07 PM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Missing Web.config

I'm sure it's something I did, but on page 44 you mention modifying the Web.config file in the websites folder where DNN was unzipped. I see a 03.01.00.config file but no Web.config file. Any idea where I might look for it? Thanks,

Roger Erickson

 
Old July 28th, 2005, 05:14 PM
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Roger,

A change was made it DotNetNuke 3.1 (after the book was published) to not include the web.config called "web.config".

The reason was the web.config contains a hash key for encrypting passwords that developers are encouraged to change, when a new release came out, the web.config would be overwritten and there hash key lost forever. So they would be unable to login.

To help prevent this happening, we provide 2 other files, developers can rename to web.config. These are development.config and release.config, both are optimised for either scenario. So take a copy of either and rename it to web.config for a clean install.

The 03.01.00 config file is a file comparison on what has changed between the release so developers can merge in any changes (if new config sections have appeared, etc)

 
Old July 30th, 2005, 06:35 PM
Authorized User
 
Join Date: Jun 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just for clarification... this "feature" (the keys in the web.config) is by design in the MemberRole component provided by Microsoft. We're continuing to look for ways to handle this situation better, but we packaged this way in the interests of safety for our users (as Scott explained).

Unlike some other applications, which install with the same set of keys for EVERY install (which is a fairly significant security risk), DotNetNuke generates a random security key for you if you don't already have one. This ensures that you don't use the same security key as every other installation of DotNetNuke out there.

That is why the old key needs to be set in the new web.config.

Cheers,
Scott

It is only with the heart that one can see rightly... what is essential is invisible to the eye.
~ Antoine de Saint-Exupéry
 
Old August 29th, 2005, 03:41 PM
Registered User
 
Join Date: Aug 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Note to authors: This topic would make a good errata item. I ran into the same problem with the 3.1 download.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Providers missing in web.config, pg 615 frankm9639 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 September 10th, 2008 07:37 PM
web.config vs. app.config darlo Visual Studio 2005 11 August 20th, 2008 07:23 AM
web.config rrkano .NET Framework 2.0 1 June 23rd, 2008 02:50 PM
Web Config SteveP55419 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 3rd, 2007 04:19 PM





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