开发者

What does it mean that I have the url for a web service in app.config but not in web.config file?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜