部署新的Windows窗体应用程序 [英] Deploying a new windows form application
问题描述
我完成了我的应用程序,我的机器上的一切似乎都很好,但是当我发布它并复制到客户端机器时,找不到数据库并且它没有启动,我使用linq来sql,我需要帮助部署它。
谢谢
嗨阿里,
您的数据库是什么类型的?访问数据库?或者哪个?
我担心您没有将数据库文件包含到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屋!