Visual Studio does not generate app.config content when “add service reference”

前端 未结 5 1670
执念已碎
执念已碎 2020-12-09 01:45

When I add a web service by using \"add service reference\" in the console app, the app.config does not generate the configuration. How do I generate this app.config with a

5条回答
  •  Happy的楠姐
    2020-12-09 02:30

    In my case, following actions resolved

    1. Commented tag in web.config file in WCF Project (from to
    2. Recompiled WCF project
    3. Hosted it at IIS
    4. At client application delete old reference and add again WCF reference

    and it worked :)

提交回复
热议问题