Forum

System.Data.SqlClie...
 
Bildirimler
Hepsini Temizle

System.Data.SqlClient.SqlException (0x80131904): Login failed.

2 Yazılar
2 Üyeler
0 Reactions
7,941 Görüntüleme
(@emresener)
Gönderiler: 7
Active Member
Konu başlatıcı
 

merhaba arkadaşlar,

 

ben bu programı localdeki bilgisayarlar aracılığıyla server üzerinden çalıştırmaya deniyorum. 

Yukarıdaki resimde de gözüktüğü gibi giriş formu açıldığında parolayı yazıp
yönetici girişine tıklandığında resmin hemen altındaki hata penceresi
çıkıyor. ama serverden çalıştırmayı denediğimde bir sıkıntı yok program çalışıyor. sadece localdeki bilgisayarlar aracılığı ile serverden çalıştıramıyorum. programı yaparken kullanmış olduğum program c# veri tabanı ise mssqlserver 2008 management studio. hatanın sql den kaynaklandığından eminim. yalnızca veri tabanı kodlarının yazılı olduğu sayfalarda alıyorum bu hatayı. diğerlerinde sıkıtı yok. yardımcı olabilirseniz çok sevinirim.

 

Resimdeki hata ekranının details kısmı aşağıdaki açıklamalardan ibaret..

 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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): Login failed. The login is from an untrusted domain and
cannot be used with Windows authentication.

   at
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection
owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate,
Boolean onlyOneCheckConnection, DbConnectionOptions userOptions,
DbConnectionInternal& connection)

   at
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection
owningObject, TaskCompletionSource`1 retry, DbConnectionOptions
userOptions, DbConnectionInternal& connection)

   at
System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection
owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions
userOptions, DbConnectionInternal& connection)

   at
System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource`1 retry, DbConnectionOptions userOptions)

   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)

   at System.Data.SqlClient.SqlConnection.Open()

 
 at ear_surec_takip.Form1.button2_Click(Object sender, EventArgs e) in
C:\Users\Administrator\Documents\Visual Studio
2010\Projects\ear_surec_takip\ear_surec_takip\Form1.cs:line 56

   at System.Windows.Forms.Control.OnClick(EventArgs e)

   at System.Windows.Forms.Button.OnClick(EventArgs e)

   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.ButtonBase.WndProc(Message& m)

   at System.Windows.Forms.Button.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)

ClientConnectionId:ba5c4fc1-4a4f-4a3f-9aac-41bffc4f9054

******** Loaded Assemblies ********

mscorlib

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18034 built by: FX45RTMGDR

    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

----------------------------------------

ear_surec_takip

    Assembly Version: 1.0.0.0

    Win32 Version: 1.0.0.0

    CodeBase: file://EAR/Debug/ear_surec_takip.exe

----------------------------------------

System.Windows.Forms

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18036 built by: FX45RTMGDR

 
  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.18021 built by: FX45RTMGDR

 
  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.18034 built by: FX45RTMGDR

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Data

    Assembly Version: 4.0.0.0

    Win32 Version: 4.0.30319.18034 built by: FX45RTMGDR

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.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.18034 built by: FX45RTMGDR

    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.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.

 
Gönderildi : 10/05/2013 13:45

(@FerhatIndi)
Gönderiler: 467
Honorable Member
 

Unhanded  Exceptions genelde .net hatasidir.Cleint tarafindaki istemcinin OS degisitir.  .net3.5 updateleriyle beraber kur. Bide sql driver 10. kur bakalim degisekcemi. kolay gelsin

 
Gönderildi : 11/05/2013 21:18

Paylaş: