Re: Where does the config file go?
- From: "Marina Levit[MVP]" <someone@xxxxxxxxxxxxx>
- Date: Fri, 27 Apr 2007 11:08:59 -0400
Is this a windows or web app?
For web, you need a web.config.
For a windows app, if your application name is myApp.exe, the configuration
file name should be myApp.exe.config. app.config is the name of the file in
visual studio, and on build it copies the file out to the output directory
with the naming convention as I described.
"Jerry Spence1" <jerry.spence@xxxxxxxxxxxxx> wrote in message
news:46320a9c$0$8757$ed2619ec@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am getting a protocol violation error from an IP product and after some
searching I found the following fix:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!-- User application and configured property settings go here.-->
<!-- Example: <add key="settingName" value="settingValue"/> -->
<add key="Button1.Enabled" value="True" />
</appSettings>
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true"/>
</settings>
</system.net>
</configuration>
However, I can't find what you do with this file and what to call it.
Google searches seem to offer some alternatives - none of which work. So
far, I have called it app.config and placed it in the project root
directory. Some help would be appreciated.
-Jerry
.
- References:
- Where does the config file go?
- From: Jerry Spence1
- Where does the config file go?
- Prev by Date: Re: Sending email from within app
- Next by Date: regular expression
- Previous by thread: Where does the config file go?
- Next by thread: Finding a share's directory spec
- Index(es):