خرید بک لینک

Vote count: 0

I have created a quiz application in c# . I have created a local db. when i give a command on my PC sqllocal info it shows my db . It works fine on same PC. but when i install my application I get following error:

But when I run same application on other pc it gives me error

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 coection 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 coections. (provider: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.) ---> System.ComponentModel.Win32Exception (0x80004005): The system caot find the file specified at System.Data.SqlClient.SqlIntealCoection.OnError(SqlException exception, Boolean breakCoection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWaing(TdsParserStateObject stateObj, Boolean callerHasCoectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.Coect(ServerInfo serverInfo, SqlIntealCoectionTds coHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover) at System.Data.SqlClient.SqlIntealCoectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) at System.Data.SqlClient.SqlIntealCoectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlCoectionString coectionOptions, SqlCredential credential, TimeoutTimer timeout) at System.Data.SqlClient.SqlIntealCoectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlCoectionString coectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlIntealCoectionTds..ctor(DbCoectionPoolIdentity identity, SqlCoectionString coectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlCoectionString userCoectionOptions, SessionData recoectSessionData) at System.Data.SqlClient.SqlCoectionFactory.CreateCoection(DbCoectionOptions options, DbCoectionPoolKey poolKey, Object poolGroupProviderInfo, DbCoectionPool pool, DbCoection owningCoection, DbCoectionOptions userOptions) at System.Data.ProviderBase.DbCoectionFactory.CreatePooledCoection(DbCoectionPool pool, DbCoection owningObject, DbCoectionOptions options, DbCoectionPoolKey poolKey, DbCoectionOptions userOptions) at System.Data.ProviderBase.DbCoectionPool.CreateObject(DbCoection owningObject, DbCoectionOptions userOptions, DbCoectionInteal oldCoection) at System.Data.ProviderBase.DbCoectionPool.UserCreateRequest(DbCoection owningObject, DbCoectionOptions userOptions, DbCoectionInteal oldCoection) at System.Data.ProviderBase.DbCoectionPool.TryGetCoection(DbCoection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckCoection, DbCoectionOptions userOptions, DbCoectionInteal& coection) at System.Data.ProviderBase.DbCoectionPool.TryGetCoection(DbCoection owningObject, TaskCompletionSource1 retry, DbCoectionOptions userOptions, DbCoectionInteal& coection) at System.Data.ProviderBase.DbCoectionFactory.TryGetCoection(DbCoection owningCoection, TaskCompletionSource1 retry, DbCoectionOptions userOptions, DbCoectionInteal oldCoection, DbCoectionInteal& coection) at System.Data.ProviderBase.DbCoectionInteal.TryOpenCoectionInteal(DbCoection outerCoection, DbCoectionFactory coectionFactory, TaskCompletionSource1 retry, DbCoectionOptions userOptions) at System.Data.ProviderBase.DbCoectionClosed.TryOpenCoection(DbCoection outerCoection, DbCoectionFactory coectionFactory, TaskCompletionSource1 retry, DbCoectionOptions userOptions) at System.Data.SqlClient.SqlCoection.TryOpenIer(TaskCompletionSource1 retry) at System.Data.SqlClient.SqlCoection.TryOpen(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlCoection.Open() at System.Data.Common.DbDataAdapter.FillInteal(DataSet 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 MITCOE.TestDataSetTableAdapters.TableTableAdapter.Fill(TableDataTable dataTable) at MITCOE.Form2.Form2_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e) 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(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ClientCoectionId:00000000-0000-0000-0000-000000000000 Error Number:2,State:0,Class:20

When I write sqllocal info it gives me

'sqllocal' is not recognized as an inteal or exteal command, operable program or batch file.

So Why doesn't my localdb work on other PC

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 16 خرداد 1395 ساعت: 13:59

صفحه بندی