Sometime a开发者_Python百科go for my asp.net application I have added a web service.
After some time I wanted to modify its url. And when I was investigating the code, I have found out that the url of the web service in app.config file.
Should not it be in web.config file as I am not developing a windows application?
How should I explain this?
Thanks.
In web apps, the application reads values from web.config and not any other config file. Some times when you add something that needs a config, to your project (like an EF model or web service) it adds a app.config file. Usually it happens when you add it in an other project(dll) in your solution.
Update:
as jisaak said, you have to copy any values you need from app.config to web.config manually.
精彩评论