.net windows应用程序远程访问问题请帮忙 [英] .net windows application remote accessing problem please help

查看:92
本文介绍了.net windows应用程序远程访问问题请帮忙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai,

我是Raveesh,我在.net担任桌面开发人员,我使用.net创建了一个Windows应用程序,并使用sql server 2008r2 for db。在我的公司我使用了三个系统,其中一个包含sql server 2008 r2.me在三个系统中安装了应用程序,它运行良好。我给连接线喜欢这个



Hai,
I am Raveesh i worked as desktop developer in .net , i created one windows application using .net and uses sql server 2008r2 for db. in my company me used three system and one of them containing sql server 2008 r2.me installed the application in three system it works well. i give the connection line likes this

add name="ConnectionString" connectionstring="Data Source=192.168.1.11\MSSQLSERVER,1433;Initial Catalog=NewsAdvt;User ID=sa;Password=sql" providername="System.Data.SqlClient"



它在我办公室的所有系统中都取得了成功有windows xp操作系统。



问题

i在我的客户端系统中安装了应用程序,但它不起作用。我的客户端有三个系统它包含windows 7操作系统,我在一个系统中安装了sqlserver 2008r2并启用了tcp / ip,命名管道,共享内存,通过。我为所有系统设置了ip。我禁用了Windows防火墙也设置了sqlserver.exe,sqlbrowser.exe,sqlwriter.exe是通过widows防火墙高级设置运行 - >入站规则 - >新规则.i将udp端口设置为1434,tcp端口设置为1433使用它。我提供与上面相同的连接,但它不起作用任何人都可以帮助我。



Lan连接用于两者。另外我检查ping 1n commad提示符所以两者都是rply连接很好。


it succes in my office all the system has windows xp OS.

Problem
i installed the application in my client system but its not work .my client has three system it contains windows 7 operating system ,i installed sqlserver 2008r2 in one system and enabled tcp/ip,named pipes,shared memory,via. and i set the ip for all system. i disabled the windows firewall also am set the sqlserver.exe,sqlbrowser.exe,sqlwriter.exe are run through widows firewall advanced setting->inbound rules->new rules.i set the udp port as 1434 and tcp port as 1433 using it. i give the connection same as above but its not work can any one help me.

Lan connection is used for both.also i checked ping 1n commad prompt so both are rply the connection is well.

推荐答案

听起来像是一个供股问题。



在客户端尝试设置向您的数据库发送odbc数据源并测试连接



控制面板=>管理工具=>数据源(odbc)=>系统DSN =>添加...按照点击指南进行设置连接



可以向您展示更详细的问题



首先检查您要连接的数据库是否设置了允许远程连接:)
Sounds like a rights issue.

On the client try setting up an odbc datasource to your databse and test the connection

Control panel => administrative tools => data source (odbc) => System DSN => Add ... follow click through guide to setup connection

May show you to more detail what the problem is

And do check first that the database you're connecting to has 'allow remote connections' set :)


这篇关于.net windows应用程序远程访问问题请帮忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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