我需要有关将Windows窗体应用程序部署到生产环境的帮助 [英] I need help on deploying a windows form application to a production environment

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

问题描述

我需要有关将Windows窗体应用程序部署到生产环境的帮助。我已经在visual studio 2010中成功创建了应用程序,并且我使用Entity Framework作为映射到sql server 2008R2版本的数据存储。应用程序在我的开发机器上运行正常,但是当我创建exe文件并在另一台PC上运行时应用程序找不到数据库,并且在生产机器上安装了sql server 2008R2。我还在某处读到,最好使用sql server compact edition作为数据库而不是完整的快速版本。我需要的帮助是我可以将sql express 2008R2版本中的数据传输到精简版本,并使我的应用程序使用紧凑版本。其次,如何将其部署到与开发机器不同的生产环境中。我一直在寻找答案已经有一段时间了,而且我还没有看到我在寻找什么。请感谢我可以指出一篇文章来处理这些问题。谢谢,我仍然是一个菜鸟,欢迎任何帮助。

I need help on deploying a windows form application to a production environment. I have successfully created the application in visual studio 2010 and i used Entity Framework as the data store that is mapped to a sql server 2008R2 edition.The application runs fine on my developement machine but when i create the exe file and run it at another pc the application cannot find the database and there is a sql server 2008R2 installed on the Production machine.I also read somewhere that it is better to use sql server compact edition as a database instead of the full blown expresss edition.The help i need is how can i transfer the data in the sql express 2008R2 edition to the compact edition and make my application used the compact edition instead.Secondly how can i deploy it to a production environment that is a Pc different from the development machine.I have been searching for the answer for quite sometime now and i have not been able to see what i am looking for.Please i will be grateful it i can be pointed to an article that deals with the issues. Thanks i am still a noob at this please any help is appreciated.

推荐答案

将数据库迁移到精简版 这个





,对于第二个问题,你不能在项目中使用绝对路径。确保在安装项目中添加所有必需的文件,如sqlce数据库,数据库,图像文件等所有dll
For Migrating Database to Compact edition This OR This


and for your second question you must not use absolute path in your project. make sure that you add all necessary file in your setup project like all dlls of sqlce database,your database,imagefiles etc


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

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