Hi, i start develop with c/front and comes to my first problem. I start a new c# project and write following lines for onclick action of an button: NavisionNetType NetType; NavisionDriverType DriverType; NavisionValue Data; DriverType = NavisionDriverType.Sql; NetType = NavisionNetType.SqlDefault; CFrontDotNet.DriverType = DriverType; CFrontDotNet.NavisionPath = "C:\\Programme\\Microsoft Dynamics NAV\\CSIDE Client"; CFrontDotNet.Instance.ConnectServerAndOpenDatabase("MATAR", NetType, "Demo Database NAV (5-0)", 2000, true, false, "dbuser", "password"); ...
But when i try to start the action onclick there comes a error. Database not connected or wrong username password. Anyone has a idea to solve this problem?
I read a post a year ago, he solve the problem on upload the certificate-file. I upload it an the problem is the same. Any ideas? regards rene
Were you able to get this working? If not post the rest of your code and I’ll give it a run. 2 sets of eyes sometimes work better… [8-|]
Hey DigiTecKid,
i solved the problem, it was an misstake from Windows by mapping the folder names. In german there are Programme in the c drive and in english there are Program Files. So i try it with Programme and it dosent work. Now i open the Librarys with System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + "\\Microsoft Dynamics NAV\\CSIDE Client\\"
and it works.
thx
Regards
René
Thanx for the update!