部署新的Windows窗体应用程序 [英] Deploying a new windows form application

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

问题描述

我完成了我的应用程序,我的机器上的一切似乎都很好,但是当我发布它并复制到客户端机器时,找不到数据库并且它没有启动,我使用linq来sql,我需要帮助部署它。



谢谢

解决方案

嗨阿里,


您的数据库是什么类型的?访问数据库?或者哪个?


我担心您没有将数据库文件包含到ClickOnce软件包中,因此安装后无法找到它。


尝试将您的数据库添加到项目并将其设置为"始终复制":



然后在"应用程序文件"中,将状态设置为"包含":



参考:


发布和安装后,
程序无法找到数据库


如何:指定ClickOnce发布的文件


如何:包含ClickOnce应用程序中的数据文件


问候,


Stanly


I finished my application and everything seems fine on my machine, but when i published it and copied to a client machine, the database wasn't found and it is not starting, I used linq to sql , i need help to deploy it.

Thank you

解决方案

Hi Ali,

What the type of your database is? Access database? Or which?

I'm afraid you did not include the database file to the ClickOnce package, so you can not find it after install.

Try to add your database to the project and set it to "Copy always":

Then in the Application Files, set the status to Include:

Refer:

After publishing and installation the program cant´t find the database

How to: Specify which files are published by ClickOnce

How to: Include a data file in a ClickOnce application

Regards,

Stanly


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

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