开发者

Creating a setup for windows application by excluding app.exe.config file in .Net

I get a issue while deploying my setup the issue is:

I hosted a web service and i have created a reference to that service in my windows application. As usual, the service behaviours, and the endpoints listening to that service is configured in app.config file. while creating setup for my application the app.e开发者_开发百科xe.config is getting included with the setup and gets deployed into the installed machine. so the user can modify that app.config.exe file. By excluding the app.exe.config file via ExcludeFilter property i couldn't get connected to my service. so its throwing a error.

How could i resolve this issue by hiding or excluding my app.config.exe file in the installing machine?


I suggest looking at using Windows Installer XML (WIX) to build your setup application - that way you could gather the correct configuration for the endpoints from the user carrying out the installation and modyfy the configuration during the installaiton process

Alternativly you might like to take a look at this blog post showing how the new web config transformation syntax could be used as part of building your setup

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜