Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 February 3rd, 2005, 07:02 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to RPG SEARCH
Default Web.Config Question

Hi all,

I wanted to ask about web.config file. I was getting an error from something i was making basically saying it could not open the cnnnectionstring to the database which i has specified within my Web.Config - i always throught that it went into the main file ie MYAPPLICATION (i moved it to) MYAPPLICATION/ADMIN/ now it works... but i thought that you could only have one web.config in any given application, so will it cause the same error in pages in the MYAPPLICATION folder.

thanks


David
__________________
David Jenkins
 
Old February 3rd, 2005, 07:49 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Atleast to me ... the Question is not clear!

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old February 3rd, 2005, 08:17 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to RPG SEARCH
Default

Should there be one Web.Config in each directory or one for the whole application?

If the answer is one for the whole application, what directory do i need to put it in and why would a page not pick up the web.config in the file above so that it picks up the connectionstring?

Sorry hope thats a bit clearer - i have a tendancy to run away with myself!

Thanks


David
 
Old February 3rd, 2005, 09:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

One should go in the root folder of your web app that sets all folders. If you wanted to add anything to a specific folder you could add another. The ones in the sub folders will inherit from the root config. Most people block anonymous access with sub folder configs.

 
Old February 3rd, 2005, 09:31 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to RPG SEARCH
Default

Cool thanks you.

David





Similar Threads
Thread Thread Starter Forum Replies Last Post
web.config vs. app.config darlo Visual Studio 2005 11 August 20th, 2008 07:23 AM
web.config sonny1 ASP.NET 2.0 Basics 1 October 20th, 2007 01:40 PM
web.config nagsumam .NET Framework 1.x 3 November 29th, 2006 10:09 AM
New Config 2005 Reading Question Neilgott Visual Basic 2005 Basics 0 May 1st, 2006 09:30 AM
IIS config question? developerz BOOK: ASP.NET Website Programming Problem-Design-Solution 0 November 15th, 2003 05:59 AM





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