ClickOnce应用程序部署和app.config [英] ClickOnce Application deployment and app.config

查看:327
本文介绍了ClickOnce应用程序部署和app.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的WinForms应用程序,我正在尝试使用ClickOnce方法进行部署.但是,安装不包括该应用程序所需的app.config文件.

从服务器正确安装了该应用程序,并启动了exe,但是一旦我尝试通过单击WCF服务器进行登录,我就会得到.

找不到文件'C:\ Documents and Settings \ Adminstrator \ Local Settings \ Apps \ 2.0 \ 7KAA3h20 \ app.config"

我可以将文件从开发计算机手动复制到此文件夹,并且应用程序运行正常.

I have a new WinForms application that I''m trying to deploy with the ClickOnce method. However, the app.config file that is needed for the application is not included with the installation.

The application is installed properly from the server, and launches the exe, but as soon as I try to login by hitting my WCF Server, I get.

"Could not find the file ''C:\Documents and Settings\Adminstrator\Local Settings\Apps\2.0\7KAA3h20\app.config"

I can manually copy the file from my development machine to this folder and the application works fine.

Any ideas?

推荐答案

我相信这篇文章
I believe that this article, http://msdn.microsoft.com/en-US/library/kzy0fky2(v=vs.80).aspx[^] will help you.


这篇关于ClickOnce应用程序部署和app.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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