局域网应用程序不起作用 [英] LAN Application not working

查看:106
本文介绍了局域网应用程序不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了Windows LAN应用程序,并成功安装在服务器系统中.但是在客户端系统中安装并运行它时,它会显示超时到期"错误

I have created a windows LAN application, and successfully installed in server system. But when installing in client system and running it, it is showing a ''timeout expiry'' error

推荐答案

三个步骤逐个清除它们以连接数据库远程位置的服务器(客户端-pc)

1.局域网连接不正确
解决方案:从客户端ping服务器

2.服务器应该已经正确配置,可以允许从远程位置访问数据库

3.连接字符串不正确

一步一步地解决步骤
并在Google上进行搜索(如果遇到问题)或询问我们,在哪一步需要帮助

祝您编码愉快!
:)
Three steps clear them one by one to connect with database on server from remote location(Client - pc)

1. Lan connection is not proper
Solution : ping server from client

2. Server should have configured properly that it can allow to access database from remote location

3. Connection string is not proper

one by one try to solve steps
and search on google if stuck or ask us, in which step you need help

Happy Coding!
:)




如您所知,对于SQL-SERVER,我们为不同的计算机提供了不同的连接.您的问题可能是连接字符串不正确的问题.要检查连接字符串,您可以做一件事.在客户端计算机上安装Visual Studio.在任何应用程序中,从那里尝试使用诸如DataGridView之类的任何数据库控件在服务器中创建到数据库的任何绑定数据库连接.在建立连接的过程中,您将找到Visual Studio生成连接字符串的步骤.检查此连接字符串是否与您提供的连接字符串匹配.如果未使用,则此Visual Studio生成的连接字符串.如果有局域网连接问题,您可以使用ping来检查.尝试禁用防火墙.它可以工作很多次.
Hi,

As you must be knowing for SQL-SERVER we have different connections for different computers. Your problem might be that of improper connection string. To check the connection string you can do one thing. Install the Visual Studio in the client machine. From there in any application try to create any bound database connection to your database in server using any database control like DataGridView. In the process of establishing the connection you will be finding a step when Visual Studio will be generating a connection string. Check whether this connection string matches with the connection string provided by you. If not use this Visual Studio generated connection string. If there is a lan connection problem you can check it out with ping. Try disabling the firewall. It works many times.


这篇关于局域网应用程序不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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