First off, here is the code:
Dim strDBPath As String strDBPath = App.Path If Right(strDBPath, 1) <> "\" Then datAgents.DatabaseName = App.Path & ".\IPM-DB.mdb" End If
I use this to find my MS Access DB file. When I use the Package & Deployment wizzard and install the program on the same PC where my Visual Studio is installed I don't get any errors.
When I install it on another PC WITHOUT Visual Studio installed I get the error:
"Provide cannot be found. It may not be properly installed". I almost smacked my screen off the desk. I remember this error from 3 years ago when I use code in VB a lot.
Is this because I havn't installed DotNet SDK 1.1 on the other PC?
I know the piece of code I pasted above is the reason for the error, coz if I remove it and set the databasename/connectionstring to C:\Program Files\IPM\, i don't get no errors. This is not good coding so I don't wanna do it.