سلام.
من میخوام یه برنامه کوچیک تحت شبکه بنویسم گفتم اول چک کنم و باد بگیرم این ارتباط رو بعد ادامه بدم..
این کد رو ببینید و در ادامه اروری رو که میده.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace test_network_programing
{
publicpartialclassForm1 : Form
{
SqlDataAdapter objDA;
SqlConnection objConn;
DataSet objDS;
DataView objDV;
CurrencyManager objCM;
string strConn = "server=192.168.1.2,1433;database=fvstell;integrate d security=true";
public Form1()
{
objConn = newSqlConnection(strConn);
objDA = newSqlDataAdapter("select * from fvstell",objConn);
objDS=newDataSet();
objDA.Fill(objDS, "fvstell");
InitializeComponent();
}
}
}
این ارور رو میده:
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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
کامپیوتر مقصد (که بانک روشه ) دارای sqlexpress 2005 هست و بانک قبلا با کد در اون attach شده.
لطفا راهنماییم کنید.