开发者

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

开发者 https://www.devze.com 2023-03-08 00:30 出处:网络
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 o

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

精彩评论

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