Configuration

  • Thread starter Thread starter Kai Huener
  • Start date Start date
K

Kai Huener

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
 
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
 
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
 
Back
Top