Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 September 12th, 2009, 12:43 PM
Registered User
 
Join Date: Aug 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default web.config is still readable after compiling!?

Hi fellows,

I wanted to test my application(built after the book), and I compiled it with -p and -v options. Everything got encrypted except the web.config. What should I do to web.config encrypted too? It's kind of scary senario to put the config-file uncrypted in a shared hosting environment.

Thanks in advance!
 
Old September 13th, 2009, 07:30 AM
Registered User
 
Join Date: Aug 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default I found the answer!

Hi everybody,

I find the answer(s) to my problem and I want to share that with you.
First of all, I wanted to confess my misunderstanding about the part of the book about deploying and compiling the solution. I expected that after pre-compiling with -p and -v switches then I'll get all files compiled except text, images, html, and xml files.
I was pretty sure that I read somewhere in the book that one of the reasons we want to pre-compile our applications was to hide our code and configurations from the prying eyes. Therefor I got worry when I saw the web.config stil in its xml format.

However, after a few hour searching the Internet and right asked questions!!! I found two solutions for my problem.
  1. ProtectedConfigurationProvider Class
    which is the most adequate solution if we want to deploy our application on a shared webserver(outside of our company)
  2. Encrypt Configuration Sections in ASP.NET 2.0 Using DPAPI
    Which is a OS-level data protection service which demands access to the OS.

Kindly regards from Sweden

Last edited by mzsohi; September 13th, 2009 at 07:33 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Fix for Web.config Error in ...\Chapter01\LINQforBinding Web Sites rogerj BOOK: Professional ADO.NET 3.5 with LINQ and the Entity Framework ISBN: 978-0-470-22988-0 0 February 18th, 2009 01:59 PM
web config iceman90289 ASP.NET 3.5 Basics 7 February 6th, 2009 01:33 AM
web.config vs. app.config darlo Visual Studio 2005 11 August 20th, 2008 07:23 AM
I need Help with web.config please ! _fluffy_ BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 4th, 2007 05:31 PM
Web.Config tranzformerz ASP.NET 1.0 and 1.1 Basics 1 August 29th, 2005 05:59 PM





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