开发者

Need to change ip address in app.config in runtime without runnning as admin

There's a lot of post saying how to change info in the app.config and there are posts that say you shouldn't edit info in the app.config but store info in user folders. I understand these topics. But what i want is a combination of both. I have a wcf setup for my client in an app.config, which contains the endpoint address to which it should connect. When The server changes ip, or when a client is installed on a computer in another company, the user should be able to insert another ip-address which should be stored in the app.config. This cannot be stored in a file in appdata or something like that, as the client reads the info in the app.config on startup.

How can i write (so remember the new ip-address) in the app.config when the client is installed in program files, the UAC is enable开发者_Python百科d and the program isn't run as an admin?

Thanks in advance.


Could you simply change the IP in the App.config as part of your MSI/installation procedure?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜