Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

SqlException (0x80131904) Error when Viewing GridView Locally

$
0
0

I'm new to Visual Web Developer Express (I'm more on working with Access and VBA).

I tried to make a website with a GridView and downloaded an example from following URL:

https://code.msdn.microsoft.com/VBASPNETGridView-19039173

It worked fine on my PC at work but on my PC at home it doesn't want to work with 1 user. With another user on the same PC there's no Problem.

Both users are administators. I use Win10 with Visual Studio Express 2010.

Here's the complete Errorcode: (Unfortunately it's in German, but the SQL Exception Code shouldn't be different in other languages)

Serverfehler in der Anwendung /.

Fehler bei der Anmeldung für den Benutzer 'EDDIE-TOWER\Eddiesoft'.

Beschreibung:Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

Ausnahmedetails:System.Data.SqlClient.SqlException: Fehler bei der Anmeldung für den Benutzer 'EDDIE-TOWER\Eddiesoft'.

Quellfehler:

Zeile 63:

Zeile 64: ' Open the connection

Zeile 65: conn.Open()

Zeile 66:

Zeile 67: ' Fill the DataTable named "Person" in DataSet with the rows

Quelldatei:D:\ÖWR_Meisterschaften\Web\1&1\Test\VB\VBASPNETGridView\DataFromDatabase.aspx.vbZeile:65

Stapelüberwachung:

[SqlException (0x80131904): Fehler bei der Anmeldung für den Benutzer 'EDDIETOWER\

Eddiesoft'.]

System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +92

System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +285

System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +3731

System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +69

System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +30

System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +38

System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +681

System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +89

System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78

System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +154

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

System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +90

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

System.Data.SqlClient.SqlConnection.Open() +96

VBASPNETGridView.DataFromDatabase.BindGridView() in D:\ÖWR_Meisterschaften\Web\1&1\Test\VB\VBASPNETGridView\DataFromDatabase.aspx.vb:65

VBASPNETGridView.DataFromDatabase.Page_Load(Object sender, EventArgs e) in D:\ÖWR_Meisterschaften\Web\1&1\Test\VB\VBASPNETGridView\DataFromDatabase.aspx.vb:42

System.Web.UI.Control.OnLoad(EventArgs e) +95

System.Web.UI.Control.LoadRecursive() +59

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2952

Versionsinformationen:Microsoft .NET Framework-Version:4.0.30319; ASP.NET-Version:4.6.114.0

Thanks

Eddie


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>