Windows窗体应用程序不运行其他计算机 [英] Windows Form application not run anther computer

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

问题描述

你好先生/女士



我在Windows表单应用程序中使用c#.net和MS Access数据库创建但是当这个项目运行时复制其他计算机然后它不能创建连接其他计算机然后如何修复其他计算机的Windows窗体应用程序项目中的连接?

hello Sir/Madam

I am create in windows form application using c#.net with MS Access Database but when this project copy other computer when run it then it can''t create connection other computer then how to fix connection in windows form application project for other computer?

推荐答案

您好Patel,

使用Access数据库的任何具体原因?我建议可能是MSSQL或MySQL。

如果这两台计算机在同一个网络上,即一台计算机上的数据库和另一台计算机中的应用程序检查app.config并在< connectionstrings>中指定IP地址;如果您决定在.cs文件中指定,则检查或检查代码中的连接字符串
Hi Patel,
any specific reason for using Access database? I would suggest maybe MSSQL or MySQL.
If this two computers are on the same network i.e DB on one computer and App in another check in the app.config and specify the ip address in the <connectionstrings> tag or if check you connection string in the code if you have decided to specify in the .cs file


使用 odbc 连接

这篇关于Windows窗体应用程序不运行其他计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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