No error message available, result code: DB_SEC_E_AUTH_FAILED(0x80040E4D).

No error message available, result code: DB_SEC_E_AUTH_FAILED(0x80040E4D).

No error message available, result code: DB_SEC_E_AUTH_FAILED(0x80040E4D).
No error message available, result code: DB_SEC_E_AUTH_FAILED(0x80040E4D).


Problem
:

No error message available, result code: DB_SEC_E_AUTH_FAILED(0x80040E4D).

Cause :

Your VB .Net project ConnectionString is invalid. There is something wrong in your code (i,.e : Provider Name, Database  Path, Database Name) but not before compiling. For Example if you change the database folder at Run-time.

Solution :

Store your ConnectionString in Settings (Project Properties->Settings). This will also keep you safe from ConnectionString Injections.


 Here are some online Visual Basic lessons and courses :

Popular posts from this blog

VB .NET DropBox Api Source Code Example

VB .NET Google Drive Api Source Code Example

VB.NET Access 2007 Hierarchical TreeView

VB.NET How to properly close a windows application Form

DAO in VB .NET MS ACCESS Database

Solution - There is already an open DataReader associated with this Command which must be closed first.