CFRONT DotNetSampleApplication Connection error

aavioaavio Member Posts: 143
hi,
i am not able to test CFRONT DotNetSampleApplication, i am getting connection error


i had placed CFRONT.DLL,cfrontsql.dll,Microsoft.Dynamics.NAV.CFront.CFrontDotNet.dll,Microsoft.Dynamics.NAV.CFront.CFrontDotNet.xml
files in Debug folder.

at the error time Visual studio parameters
cacheSize 2000 int
databaseName "Demo Database NAV (6-0)" string
driverType Sql Microsoft.Dynamics.NAV.CFront.NavisionDriverType
navisionPath "\"C:\\Program Files (x86)\\Microsoft Dynamics NAV\\60\\Classic\"" string
netType SqlDefault Microsoft.Dynamics.NAV.CFront.NavisionNetType
password "" string
servername "AVINASH-B" string
useAuthentication true bool
useCommitCache false bool
username "" string

and iam using NAV 2009 R2 version. please help me to solve the issue. :roll:

thanks in adv
aav!o

Answers

  • aavioaavio Member Posts: 143
    in NAV 2009 version CFRONT DotNetSampleApplication is working fine

    can someone with NAV 2009 R2 version check it?
    aav!o
  • aavioaavio Member Posts: 143
    R2 version of CFRONT DotNetSampleApplication works fine in windows server. so its not issue with R2

    but still i am getting same error with all versions of NAV 2009(NAV 2009, NAV 2009 SP1, NAV 2009 R2) ](*,)
    will it be issue with operating system?? i am having Windows 7 system

    Can someone try CFRONT DotNetSampleApplication in Windows 7 system? [-o<
    aav!o
  • aavioaavio Member Posts: 143
    at last i think i almost got it

    msvcrt.dll & mfc42.dll DLLs (in SYSTEM32 folder) needed to work CFRONT seems to be different version than that provided in NAV 2009 r2 installation pack(..\Devkit\System32\Redist\MS\System).

    will that be the issue???

    but in my system (WIN 7), these files seems to be new versions than that in NAV 2009 r2 installation pack.

    i dont hav permission to change system32 dll files... am waiting for my sys admin :|
    can some one check CFRONT DotNetSampleApplication NAV 2009 R2 version in WIN 7
    aav!o
  • aavioaavio Member Posts: 143
    Finally it worked \:D/

    issue is "a 64 bit process can't access a 32 bit COM Component"
    my system is a win 7 64 bit operating one.

    so for a .NET client app (WinForms or WPF), just change your VS project--> target platform property from "Any CPU" to "x86"

    for more details plz check : http://www.sqldev.org/net-framework-ins ... 9318.shtml

    \:D/ \:D/ \:D/ :D
    aav!o
Sign In or Register to comment.