PDA

View Full Version : خطا در وصل شدن به بانک از طریق شبکه - خطای A network-related or instance-specific error occurred



arefba
پنج شنبه 18 شهریور 1389, 01:43 صبح
بسمه تعالی
با سلام من می خواستم از طریق شبکه به یه بانک اس کیو ال در کامپیوتر دیگه وصل شم
مشخصات سیستمی که بانک روشه (مقصد ) به اینصورته
اسم : m-6 آی پی شبکه : 192.168.100.6 اسم بانکم : Library
فایر وال سیستم ها رو خاموش کردم و...
این کد زیر رو خیلی اینور اونور کردم ولی کانکت نشد

SqlConnection conn = new SqlConnection(@"Data Source=192.168.100.6\M-6;Initial Catalog=Library;Integrated Security=True");

conn.Open();

conn.Close();

در آخر هم خطای زیر رو میداد


A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

omely35
پنج شنبه 18 شهریور 1389, 02:57 صبح
لینک زیر رو ببینید من از این روش جواب گرفتم:
http://www.barnamenevis.org/forum/showthread.php?p=1090357#post1090357

arefba
پنج شنبه 18 شهریور 1389, 12:20 عصر
ممنون که لینک خودم رو به خودم برگردوندید
یکی نیست یه جواب درستی بده
خطای اینی که من نوشتم تو چیه