1

When I added a web reference to a ASMX web service to my web project, it created a proxy, but with some settings in settings.setting file. Is there a way to move them to web.config file?

abatishchev
  • 98,240
  • 88
  • 296
  • 433
WinFXGuy
  • 1,527
  • 7
  • 26
  • 47

1 Answers1

0

If required you can remove default settings and create some custom settings (appSettings can be used also). Here is one of my posts how to create custom settings inside web.config:

C# WCF System.Configuration.ConfigurationErrorsException: Unrecognized element 'ManagedService'

But you will have to set service client properties using code (read custom settings, set client properties).

Hope this answers your question.

Community
  • 1
  • 1
Gregor Primar
  • 6,759
  • 2
  • 33
  • 46