In vb.net, 2015- when I connect to an access database, with the following code:
Dim StnStr() As String
StnStr = "Data Source=servername; Initial Catalog=databasename; User ID=userid; Password=password"
StnStr = "Provider=MSDataShape;Data Provider=Microsoft.Jet.OLEDB.4.0;"
StnStr = StnStr & "Jet OLEDB:System database=" & My.Application.Info.DirectoryPath & "\System.mdw;"
StnStr = StnStr & "Password=PW;User ID=USERNAME;"
StnStr = StnStr & "Data Source=" & My.Application.Info.DirectoryPath & "\data.mdb;"
StnStr = StnStr & "Persist Security Info=False"
Dim CON As New OleDb.OleDbConnection(StnStr)
CON.Open()
I receive the following error message in the output window:
The program '[3660] UpdateCrgs.vshost.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.
What can this mean?
In other projects it seems fine, why in this project am I getting this message?
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.