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
  • 95,331
  • 80
  • 293
  • 426
WinFXGuy
  • 1,411
  • 7
  • 24
  • 43

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,569
  • 2
  • 32
  • 46