473,386 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Configuration

Hello,

I have a problem to add a config File to a windows forms application. The
File (UploadClient.exe.config) is in the same folder as the CodeFiles
(namespace is UploadClient), but when I try to get some data from the
appSettings for exmple, it does not work. Are there any additional settings
to try?

Best Regards,
Kai
Nov 16 '05 #1
3 1482
Can you post your config file?

Kai Huener wrote:
Hello,

I have a problem to add a config File to a windows forms application. The
File (UploadClient.exe.config) is in the same folder as the CodeFiles
(namespace is UploadClient), but when I try to get some data from the
appSettings for exmple, it does not work. Are there any additional
settings
to try?

Best Regards,
Kai

Nov 16 '05 #2
Of course, here it is:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type="LoomenUploadClient.ProgressExtension, UploadClient"
priority="1" group="0" />
</soapExtensionTypes>
</webServices>
</system.web>
<appSettings>
<add key="username" value="kai" />
<add key="password" value="kai" />
</appSettings>
</configuration>

By the first entry, I want to use a custom SOAP-Extension to hook into a
WebService request stream. But neither this nor the appSettings work.
I hope, you can help me,

Best Regards,
Kai

"Patrick Altman" <pa**********@gmail.com> schrieb im Newsbeitrag
news:OM****************@TK2MSFTNGP12.phx.gbl...
Can you post your config file?

Kai Huener wrote:
Hello,

I have a problem to add a config File to a windows forms application. The
File (UploadClient.exe.config) is in the same folder as the CodeFiles
(namespace is UploadClient), but when I try to get some data from the
appSettings for exmple, it does not work. Are there any additional
settings
to try?

Best Regards,
Kai

Nov 16 '05 #3
Ok - I found the problem. I have to name the file "app.config" and then the
compiler renames it to "UploadClient.exe.config".

Best Regards,
Kai

"Kai Huener" <ma**@kaihuener.de> schrieb im Newsbeitrag
news:uG**************@TK2MSFTNGP09.phx.gbl...
Hello,

I have a problem to add a config File to a windows forms application. The
File (UploadClient.exe.config) is in the same folder as the CodeFiles
(namespace is UploadClient), but when I try to get some data from the
appSettings for exmple, it does not work. Are there any additional
settings to try?

Best Regards,
Kai

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is...
5
by: Water Cooler v2 | last post by:
I know that we can add a single name value entry in app.config or web.config in the configuration/configSettings/appSettings section like so: <add key="key" value="value" /> Question: I want...
1
by: Jess Chadwick | last post by:
I am attempting to use the Enterprise Library (Jan 2006) Cryptography block to encrypt a credit card number in my ASP.NET 2.0 Commerce Server application. Everything is configured correctly, as...
4
by: Michael Lang | last post by:
I was basically wanting to know how to use the System.Configuration namespace to be able to load an arbitrary number of unknown attributes on an element in a custom section in the .config into a...
6
by: Jeff Hegedus | last post by:
I have a dll that requires some configuration data. I put the configuration data in a custom configuration section in a config file that is loaded in the installation folder of the dll. If I...
8
by: Alberto | last post by:
Can you tell me how to read and modify a value in the app.config file using this class? Thank you very much
7
by: Arno R | last post by:
Hi all, I am sending mail from my apps with CDO nowadays. However I have one client where this will not work until now. I am thinking this is related to the provider where the client has his...
7
by: =?Utf-8?B?RG91Z2llIEJyb3du?= | last post by:
Hi I've written custom configuration section (inherits from System.Configuration.ConfigurationSection) to simplify the contents of the config file and to make life easier when accessing them in...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi, thanks, mister The code string rutaConfig = tbRutaConfigServicioBase.Text; '// Map to the application configuration file. ExeConfigurationFileMap configFile = New...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.