PDA

View Full Version : علت خطای A network-related or instance-specific error occurred



hichkasebikas
جمعه 10 شهریور 1391, 21:13 عصر
من توی چند فرم connection رو باز میکنم و باهاش کار میکنم. این کارم از طریق کلاس connection(که خودم ساختم) انجام میدم. حواسمم بوده که آخر کار کانکشن رو close کنم!
اما توی اجرا فقط اولین فرمی که کانکشن رو صدا میکنه رو درست اجرا میکنه و واسه فرم های بعد این خطا رو میده!


92127



توی بخش datails هم این همه خطا گرفته:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
at System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.Att emptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.Log inNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.Common.DbDataAdapter.QuietOpen(IDbConn ection connection, ConnectionState& originalState)
at System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
at oghaf.oghafDataSetTableAdapters.davtalabTableAdapt er.Fill(davtalabDataTable dataTable)
at oghaf.Form4.Form4_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
.
.
.
.
.
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


کسی میتونه کمکم کنه!!؟؟؟:ناراحت:

pashmak123456
شنبه 02 شهریور 1392, 13:54 عصر
سلام من یک برنامه نوشتم که اطلاعات کاربر (نام ، نام خانوادگی و شماره) رو در دیتابیس ذخیره میکنه
خب این تا وقتی هست که من توی رایانه خودم هستم کار میکنه !


با استفاده از کلاس LINQ یا همون LINQ to SQL Classes با این بانک ارتباط برقرار کردم

بعد رفتم یک Accountـه جدید در کامپیوترم ساختم و برنامه + خودِ دیتابیس رو توی یک پوشه توی Accountـه جدید کپی کردم ، اومدم برنامه رو باز کنم اما با این ارور مواجه شدم

حتی من app.config رو ادیت کردم
از



<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="testing.Properties.Settings.testingConnectionStrin g"
connectionString="Data Source=(localdb)\Projects;Initial Catalog=test-db;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="testing.Properties.Settings.testingConnectionStrin g1"
connectionString="Data Source=|(localdb)\Projects;Initial Catalog=test-db;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>

به


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="testing.Properties.Settings.testingConnectionStrin g"
connectionString="Data Source=|DataDirectory|;Initial Catalog=test-db;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="testing.Properties.Settings.testingConnectionStrin g1"
connectionString="Data Source=||DataDirectory|;Initial Catalog=test-db;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>


اینم ارور :





See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.SqlClient.SqlException (0x80131904): 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception (0x80004005): The network path was not found
at System.Data.ProviderBase.DbConnectionPool.TryGetCo nnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetCo nnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGe tConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionClosed.TryOpe nConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCo mpletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.Linq.SqlClient.SqlConnectionManager.Us eConnection(IConnectionUser user)
at System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe ()
at System.Data.Linq.SqlClient.SqlProvider.InitializeP roviderMode()
at System.Data.Linq.SqlClient.SqlProvider.System.Data .Linq.Provider.IProvider.Execute(Expression query)
at System.Data.Linq.Table`1.GetEnumerator()
at System.Data.Linq.Table`1.System.Collections.Generi c.IEnumerable<TEntity>.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerabl e`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at System.Data.Linq.Provider.BindingList.Create[T](DataContext context, IEnumerable`1 sequence)
at System.Data.Linq.Table`1.GetNewBindingList()
at System.Data.Linq.Table`1.System.ComponentModel.ILi stSource.GetList()
at System.Windows.Forms.CurrencyManager.SetDataSource (Object dataSource)
at System.Windows.Forms.CurrencyManager..ctor(Object dataSource)
at System.Windows.Forms.BindingContext.EnsureListMana ger(Object dataSource, String dataMember)
at System.Windows.Forms.DataGridView.DataGridViewData Connection.SetDataConnection(Object dataSource, String dataMember)
at System.Windows.Forms.DataGridView.OnBindingContext Changed(EventArgs e)
at System.Windows.Forms.Control.OnParentBindingContex tChanged(EventArgs e)
at System.Windows.Forms.Control.OnBindingContextChang ed(EventArgs e)
at System.Windows.Forms.Control.OnParentBindingContex tChanged(EventArgs e)
at System.Windows.Forms.Control.OnBindingContextChang ed(EventArgs e)
at System.Windows.Forms.ContainerControl.OnCreateCont rol()
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
ClientConnectionId:00000000-0000-0000-0000-000000000000


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
test
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Test/Desktop/test.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Data.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

haldeamon
جمعه 26 مهر 1392, 12:30 عصر
سلام دوستان ببخشيد من تازه كار هستم
من يه برنامه با C#‎‎ نوشتم كه از SQL server 2008 هم استفاده ميكنم. حالا ميخوام يه فايل setup براش درس كنم. طبق اين پست پيش رفتم http://barnamenevis.org/showthread.php?139529-%D9%86%D8%AD%D9%88%D9%87-%D8%B3%D8%A7%D8%AE%D8%AA-setup-%D8%A8%D8%B1%D8%A7%DB%8C-%D9%BE%D8%B1%D9%88%DA%98%D9%87-%D8%A8%D8%A7-%D9%86%D8%B5%D8%A8-SqlServer-%D9%88-%D8%AF%D8%A7%D8%AA-%D9%86%D8%AA
اما مسئله اي كه هس من نميتونم فيال databseم رو به پرو‍ژ اضافه كنم (اولين مرحله از راهنما)‌ هر بار يه اروري ميده. آخرين اروري كه موقع test connection داده اينه :

a network-related or instance-specific error occurred while ...
با اين ارور چيكار كنم ؟؟؟؟؟‌
راه حل ديگه اي براي ساختن فايل setup با داشتن فايل هاي database هس كه بتونم بدون هيچ مشكلي روي يك سيستم ديگه نصب كنم؟‌
ممنون

SISFSSaeed
یک شنبه 12 مرداد 1393, 14:31 عصر
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2) سلام، دوستان. اسکیو ال 2005 رو باز میکنم الین خطا رو میده ؟ مشکلش چیه ؟

mz6488
یک شنبه 12 مرداد 1393, 14:37 عصر
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2) سلام، دوستان. اسکیو ال 2005 رو باز میکنم الین خطا رو میده ؟ مشکلش چیه ؟

ممکن اشکال از کانکشن استرینگ تون باشه

meysam_online2012
یک شنبه 02 آذر 1393, 15:21 عصر
سلام کسی میدونه این خطا واسه چیه؟؟؟



Additional information: 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)

behesht.royaha
شنبه 08 فروردین 1394, 08:55 صبح
خواهش میکنک کمکم کنید دارم دیوونه میشم : با این کانکشن استرینگ تست گرفتم هم با udl وهم با server explorer کانکت میشن،ولی باکد ایراد میگیره:
SqlConnection con = new SqlConnection("Data Source=(ASUS\MSSQLSER2014);Initial Catalog=cofeeshop;Integrated Security=True");
اگه سرور رو با این آدرس معرفی کنم ASUS\MSSQLSER2014 ارور unrecognized escape sequence میگیرده
اگه سرور رو اینا local یا (local) یا . ویا localhostیا 127.0.01 معرفی کنم اینارور رو میگیره
Additional information: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

خواهش میکنم کمکم کنید sql2014 , vs2013

batman1
پنج شنبه 24 دی 1394, 18:47 عصر
سلام به همه.
دوستان،من اس کیو ال سرورم نصبه و راحت بالا میاد.
اما وقتی از داخل ویژوال استدیوم میخوام دیتابیس بسازم،این خطا رو میده.
مشکل از کجاست؟!
138391

moorteza177
یک شنبه 27 دی 1394, 10:49 صبح
سلام من در برنامه ویژوال استادیو میخام یک دیتا بیس ایجاد کنم ولی ارور میده برنامه اس کیو ال سرور و اس کیو ال اکسپرس رو هم نصب کردم ولی مشکل حل نشده عکس ارور پیوست شده لطفا اگه می دونید مشکل از کجا هست جواب بدید138447

moorteza177
یک شنبه 27 دی 1394, 10:54 صبح
سلام منم این مشکلو دارم اگه تونستی حلش کنی بگو ما هم استفاده کنیم

En_MK
یک شنبه 27 دی 1394, 12:38 عصر
سلام
فکر کنم یوزر پسورد یا مشخصات سرور را درست وارد نمیکنید...یعنی درست لاگین نمیشید
اینا (http://www.sqlmusings.com/2009/03/11/resolving-a-network-related-or-instance-specific-error-occurred-while-establishing-a-connection-to-sql-server/)رو هم چک کنید

moorteza177
یک شنبه 27 دی 1394, 15:13 عصر
از کجا میشه فهمید که یوزر پس درست وارد شده

DrPedram
یک شنبه 27 دی 1394, 16:39 عصر
زمانی که اس کیو ال رو میخواید اجرا کنید تو صفحه لاگین یوزر و پس خودتونو امتحان کنید

moorteza177
دوشنبه 28 دی 1394, 01:00 صبح
من توی نرم افزار ویژوال استودیو میخام دیتا بیس بسازم به نرم افزار اس کیو ال سرور کاری ندارم از طریق مسیر ویو نیو کانکشن می خام دیتا بیس بسازم ارور میده

DrPedram
دوشنبه 28 دی 1394, 10:20 صبح
من توی نرم افزار ویژوال استودیو میخام دیتا بیس بسازم به نرم افزار اس کیو ال سرور کاری ندارم از طریق مسیر ویو نیو کانکشن می خام دیتا بیس بسازم ارور میده

دوست عزیز برای اینکه از صحیح بودن user و pass اطمینان حاصل کنید از راهی که گفتم امتحان کنید،متوجه هستم که میخواین از خود ویژوال استودیو دیتابیس بسازید!

fsuser
جمعه 07 اسفند 1394, 14:26 عصر
چند روزه درگیر یه پروژه هستم و هنوز نتوستم مشکلش رو حل کنم. در VS2013 کار کردم اما وقتی اونو تو یه سیستم دیگه اجرا میکنم با ارور زیر روبرو میشم (ویندوز xp)
Invalid value for key attachdbfilename
این ارور وقتی میخواد به دیتابیس وصل بشه میاد

مشکلی از بابت .net framework ندارم و در ضمن sql server compact رو هم نصب کردم
اینم کانکشن برنامه :
Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirec tory|\decData.mdf;Integrated Security=True

در ضمن به جای کانکشن بالا این استفاده کردم

Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Documen ts and Settings\Administrator\Desktop\Release\Release\dec Data.mdf;Integrated Security=True
و ارور زیر رو دریافت کردم

139302

و اینکه من از دیتابیس mdf استفاده میکنم
واقعا فکر میکنم مایکروسافت می تونست خیلی ساده تر با مسائل رو برو بشه!! و ارور ها با مفهوم تری می داشت!!(مثل MYSQL)
از کمکتون پیشاپیش ممنونم
اگه جای اشتباهی تاپیک ساختم خواهشن منتقل کنید
در ضمن یادم رفت بگم که اینو در ویندوز 7 نوشتم ولی باید در xp اجرا بشه

vB.N3T
جمعه 07 اسفند 1394, 17:46 عصر
این کانکشن رو تست کنید

connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\Database1.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

behradravanbod
دوشنبه 24 اسفند 1394, 06:40 صبح
با سلام به همه برنامه نویسا!
من موقع ساختن دیتابیس جدید وقتی میرم تو سرور اکسپلورر،داخل new connection که میشم وقتی اسم دیتابیس رو انتخاب میکنم و ok رو میزنم تا بسازه،این ارور رو میده.انگلیسیم خوب نبود گفتم بیام از شما بپرسم ممنون!
139601

rezashaban
دوشنبه 24 اسفند 1394, 06:51 صبح
سلام
میگه اون Instanceی که زدی رو پیدا نمیکنه یا هم اینکه sqlexpress روی سیستمت نصب نیست

AmiN0012
دوشنبه 24 اسفند 1394, 07:38 صبح
سلام دوست عزیز این مراحلی که میگم برو جلو:
start-->در قسمت search بنویس:services.msc
در پنجره باز شده بگرد دنبال sqlserver(sql2014).این برای sql2014 هست.
اگر از sql2008 استفاده میکنی بگرد دنبال sqlserver(mssqlserver) , sqlserver(sqlexpress)
دابل کلیک کن روشون در قسمت startupType از حالت manual ببر رو حالت Automatic
سپس در انتها دکمه start را بزن.
یادت باشه اگر 2008 هستی باید هردو موردو که نوشتم انجام بدی.
و حالا دوباره تست کن.

sareham238
شنبه 04 اردیبهشت 1395, 07:12 صبح
سلام خسته نباشید من یه برنامه نوشتم با دیتابیس sql server و در سیستم خودم به خوبی کار میکنه ولی وقتی این برنامه رو در یک سیستم دیگه قرار دادم و اجرا کردم به این ارور برخورد کردم ... در ضمن در سیستم من sql server 2014 management studio نصب هستش و در سیستم دیگری Microsoft SQL Server 2014 with SP1 Enterprise ممنون میشم کمکم کنید http://www.axgig.com/images/56887352629330395919.jpg

csharpcollegian
شنبه 04 اردیبهشت 1395, 09:26 صبح
سلام
کانکشن استرینگت رو چک کن

sareham238
شنبه 04 اردیبهشت 1395, 10:16 صبح
این کانکشن استرینگ منه ... به نظرتون مشکلی تو این هستش

Data Source=.;Initial Catalog=dbLogs;Integrated Security=True

abbas220
پنج شنبه 03 تیر 1395, 11:09 صبح
سلام دوستان من به یه مشکلی برخوردم بعد از اینکه برنامه رو پابلیش می کنم توی سیستم دیگه که می برم این ارور رو میده
کل محتوای تو Refrance رو هم Copy to local کردم ممنون میشم راهنماییم کنین.
141017

محمد رضا فاتحی
پنج شنبه 03 تیر 1395, 11:25 صبح
بارها تو این سایت بحث شده...
این مشکل زمانی بوجود میاد که برنامه قادر به اتصال به پایگاه داده نمی باشه
1- کانکشن استرینگتون مشکل داره(بهتره بزارید تا بررسی بشه)
2- سرویس تو سیستم مقصد نصب یا در حال اجرا نیست...