Go Back   SitePoint Forums > Forum Index > Program Your Site > .NET
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Jan 6, 2005, 12:04   #1
ArticleBot
SitePoint Articles
 
ArticleBot's Avatar
 
Join Date: Apr 2001
Posts: 0
Article Discussion

This is an article discussion thread for discussing the SitePoint article, "The ASP.NET Web.config File Demystified"
ArticleBot is offline   Reply With Quote
Old Jan 6, 2005, 12:04   #2
Chuckie
SitePoint Wizard
 
Join Date: Nov 2000
Location: Chico, Ca
Posts: 1,128
Great article. Simple, yet it covers the important topics.
Chuckie is offline   Reply With Quote
Old Jan 10, 2005, 07:39   #3
Herr_Tais
SitePoint Enthusiast
 
Herr_Tais's Avatar
 
Join Date: Dec 2004
Location: Ravenstein, Netherlands
Posts: 30
Too simplistic for me. Very brief overview. Could be useful for beginners but many IDE's have templates for web.config with comments for most items, so I'd rather wanted a more detailed article. Sorry vriend :)
Herr_Tais is offline   Reply With Quote
Old Jan 10, 2005, 10:06   #4
CodeLes
SitePoint Zealot
 
CodeLes's Avatar
 
Join Date: Jan 2005
Location: Oklahoma
Posts: 157
yes brief, but a good starter for the completely frightened programmer...

many times new programmers are afraid of any type of config files, so they avoid them like the plague, it is good for a brief intro...

but yes, I would like to see a follow up article with more indepth info...
CodeLes is offline   Reply With Quote
Old Jan 23, 2005, 10:50   #5
kaitlyn
SitePoint Community Guest
 
Posts: n/a
I don't know what is happening, but i want to go on msn so i can talk to my friends! please let me on!! Thanks.
  Reply With Quote
Old Jan 28, 2005, 08:34   #6
CodeLes
SitePoint Zealot
 
CodeLes's Avatar
 
Join Date: Jan 2005
Location: Oklahoma
Posts: 157
Just a quick note for C# Developers:

the following reference from above:

ConfigurationSettings.AppSettings("sqlConn")

will not work in C#, in C# this denotes a method, but you are looking for a property. so you use this syntax, which is almost the same...

ConfigurationSettings.AppSettings["sqlConn"]

just replace the () with [] and you are set... :)

CodeLes is offline   Reply With Quote
Old Feb 7, 2005, 18:42   #7
jessica
SitePoint Community Guest
 
Posts: n/a
<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
  Reply With Quote
Old Feb 8, 2005, 16:14   #8
Damien
SitePoint Community Guest
 
Posts: n/a
I am having the same problem, does anyone know how to fix it?
  Reply With Quote
Old Feb 16, 2005, 14:03   #9
JeniusSoft
SitePoint Community Guest
 
Posts: n/a
Nice article; simple, but very helpful and easy to follow/understand.
  Reply With Quote
Old Feb 17, 2005, 18:36   #10
SuperFunZoo
SitePoint Zealot
 
SuperFunZoo's Avatar
 
Join Date: Feb 2004
Posts: 162
Great article, perfect for the beginner.
SuperFunZoo is offline   Reply With Quote
Old Feb 27, 2005, 18:42   #11
elguaro
SitePoint Community Guest
 
Posts: n/a
<add key="myKey" value="myValue" />

How can I access myKey from other sections of the config file?

i.e.

<listeners>
<add name="myListener"
type="ATraceListener"
initializeData=[here use myKey] />
</listeners>

Is this possible?

thanks


  Reply With Quote
Old Mar 30, 2005, 02:42   #12
p3ga5u5
SitePoint Community Guest
 
Posts: n/a
To acess configuration settings from other sections use "ConfigurationSettings.GetConfig" method. Check it out at MSDN library.
  Reply With Quote
Old Jul 4, 2005, 21:37   #13
Anonymous
SitePoint Community Guest
 
Posts: n/a
ConfigurationSettings.AppSettings("sqlConn")

maybe a typo

ConfigurationSettings.AppSettings["sqlConn"]
  Reply With Quote
Old Jul 19, 2005, 08:28   #14
vaibhav
SitePoint Community Guest
 
Posts: n/a
what exactly the difference between
runtime data updation by xml and sql
  Reply With Quote
Old Aug 8, 2005, 09:00   #15
Sangeetha
SitePoint Community Guest
 
Posts: n/a
This article covers the features beautifully in a simple language.
  Reply With Quote
Old Sep 5, 2005, 04:14   #16
Guru
SitePoint Community Guest
 
Posts: n/a
Not a great article. Just setting the custom errors to remote only is not sufficient. Out of the thousands, only a handful have actually implemented proper projects before they write.
  Reply With Quote
Old Sep 5, 2005, 05:59   #17
Steven
SitePoint Community Guest
 
Posts: n/a
For completeness, please be aware that whilst IIS does not need to restart after a modification to a web.config file, the application will restart.

All existing in process session information will be lost.

Nice article though!
  Reply With Quote
Old Oct 17, 2005, 18:25   #18
Hugh
SitePoint Community Guest
 
Posts: n/a
This is a good, clear article. I wish the Microsoft books were written this well. It only covers the basics, but it's helpful for beginners like me.

Just one criticism: there's no language specified for the example line 'ConfigurationSettings.AppSettings("sqlConn")'. This is a collection, so in C# it needs square brackets. Round brackets in VB. There is also a method for this task, e.g. AppSettingsReader.GetValue("sqlConn"), so it could cause some confusion.
  Reply With Quote
Old Oct 20, 2005, 07:59   #19
titus
SitePoint Community Guest
 
Posts: n/a
For configuration of the user sections I use IDM.Net Config Manager located on:
http://idmnetcontrols.com whitout problems.
  Reply With Quote
Old Nov 2, 2005, 07:17   #20
Mike
SitePoint Community Guest
 
Posts: n/a
This article was exactly what I needed - thanks.

For those of us (me) who need everything qualified with it's namespace:

System.Configuration.ConfigurationSettings.AppSettings["sqlConn"]
  Reply With Quote
Old Nov 15, 2005, 06:52   #21
ankur
SitePoint Community Guest
 
Posts: n/a
this is great..............
  Reply With Quote
Old Dec 4, 2005, 23:27   #22
satishunnam
SitePoint Community Guest
 
Posts: n/a
This Article IS Excellent.
  Reply With Quote
Old Dec 23, 2005, 04:06   #23
Kamath
SitePoint Community Guest
 
Posts: n/a
Thanks for your information sharing!
  Reply With Quote
Old Jan 12, 2006, 05:00   #24
Vasundhara
SitePoint Community Guest
 
Posts: n/a
Hello sir,
This is my error while accessing webform1.aspx please solve

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>


  Reply With Quote
Old Feb 4, 2006, 22:11   #25
VIJAY
SitePoint Community Guest
 
Posts: n/a
WE CAN LEARN SOMETHING EXTRA WITH THE HELP OF THIS ARTICLE.
  Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 09:21.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved