将带有WCF服务参考的XBAP应用程序部署到多个环境中 [英] Deploy XBAP application with WCF Service Reference into multiple environments

查看:80
本文介绍了将带有WCF服务参考的XBAP应用程序部署到多个环境中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


您好,我们有多种环境设置(本地,开发服务器,QA服务器,产品服务器等),并且正在构建XBAP使用WCF服务连接到数据库的应用程序.我们在本地对所有内容进行编码和单元测试,然后将其部署到我们的开发服务器以进行更彻底的单元测试.我们遇到的问题是,我们看不到如何更新已部署的XBAP应用程序以使用开发服务器已部署的WCF服务.我们能够做到这一点的唯一方法是必须更改本地计算机上的引用,编译并重新部署XBAP.

问题:我们如何配置已部署的XBAP的服务引用以指向与最初编译/部署的服务器不同的服务器上的同一服务? (就像一些配置文件... 注意:,但是在部署XBAP之后我们也没有看到配置文件.)我们不想拥有以更新我们本地计算机上的质量检查,产品,培训,阶段等服务参考,每次需要将应用程序迁移到新环境时进行编译和重新部署.

谢谢!


Hi, we have a multiple environment setup (local, Development servers, QA servers, prod servers, etc.) and we are building an XBAP application that uses WCF Services to connect to databases.  We code and unit test everything locally and then deploy to our Development servers for more thorough unit testing.  The issue that we are having is that we don't see how to update the deployed XBAP application to use the Development server deployed WCF Service.  The only way we've been able to do this is by having to change the reference on my local machine, complie, and redeploy the XBAP.

Question:  How do we configure a deployed XBAP's Service Reference to point to the same service on a different server than what it was originally compiled/deployed with?  (Like in some configuration file...NOTE: but we also don't see a config file after deploying the XBAP.)  We don't want to have to update the Service Reference for QA, Prod, Training, Stage, etc. on our local machines, compile and redeploy every time we need to migrate the application to a new environment.

Thanks!

推荐答案

嗨! .config会编译到xbap中,并且发布后不可见并且不可编辑.因此,每次更改app.config时都必须重新部署.

这真是一团糟!那不是配置".
Hi!

I can´t help you but I ran into the same problem and would like to know a solution.
The app.config compiles into the xbap and is not visible and editable after publishing. So you have to redeploy everytime you change the app.config.

It´s a real mess! That is not a "Configuration" as it should be!


这篇关于将带有WCF服务参考的XBAP应用程序部署到多个环境中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆