Options

Starting User Portal/ CFront

BokkBokk Member Posts: 138
We are trying to implement the User Portal and have been going through the installation guide to set up the server, etc. We ran the SDK wizard to install the CFront which seemed to be fine. When we tried to test it using the sample.exe we are getting an error between the license and country code files (wrong country code). However, when I start up the client that is on the server and connect it to the database, there is no conflict and it comes up without a problem. Where might the sample program be getting the country code file? Is it not looking in the Client folder?

Any thoughts, resources or suggestions would be great.

Thanks!
SGM

Comments

  • kinekine Member Posts: 12,562
    The language is taken from fin.stx file in CFront directory. Try to copy fin.stx from client into this folder (backup your old fin.stx)....
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • GG Member Posts: 7
    Hi,

    I've got the same problem. I've copied the STX file to no avail! Still the same error message:

    The country code in the license file does not correspond to the country code (US) in the STX file.
    Exception Handler called with Fatal Error: 3

    I'm running a clean install of Windows 2000 with all the latest service packs and security patches, I installed the client and imported our license, then the database server (navision not sql) in custom mode to select the database and the license.

    I tested them to see that I could access the database from the client... everything is working fine.

    I installed the SDK that includes the c/front and when I run the sample.exe I get the error message. ](*,)

    If anyone has run in to this and resolved it I would really appreciate some help.

    Thx
  • kinekine Member Posts: 12,562
    1) Which licence do you have in C/FRONT directory (W1 or another - which language it include?)?
    2) Which stx do you have in C/FRON (which language is on line 00007-00002-080-0:?)?
    3) Which licence do you have on DB server you are connecting?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • GG Member Posts: 7
    Hi,
    1) Which licence do you have in C/FRONT directory (W1 or another - which language it include?)?
    a copy of the exact same license file as in the client directory, I don't know how to determine the language but the serial number starts with CA-ZA-... and line 10 says Canada as the country of the licenced company.

    one interesting thing that is different from my licence to the cronus.flf is that the language line ends in 2 instead of 1 like all the other languages for these two items:
    4909 Application Wide - English (United States    2
    4913 Application Wide - French (Canadian)         2
    
    2) Which stx do you have in C/FRON (which language is on line 00007-00002-080-0)?
    4105 -> english (canadian)
    3) Which licence do you have on DB server you are connecting?
    a copy of the exact same license file as in the client directory

    I have made sure that the same fin.flf and fin.stx files are in the client, DB server and c/front directories... still the same error

    I tried changing the regional settings on my computer from US to Canada... it didn't help

    :-k my brain is hurting on this one! I know it's going to be a simple little thing....
  • kinekine Member Posts: 12,562
    In some cases you can load some other licence file in C/Front... do you load LicenceFIle in C/Front code? Have you set up right path to client folder in C/Front (is it same path as your client you are using?) I don't know, may be that C/Front is looking into another folder with another client (in developer enviroment is common to have more client folder...)?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • GG Member Posts: 7
    Hi,

    Yeah, I tried specifying the navision path, databasename and server name as options when starting the sample.exe program.

    by the way, when I did the original install, after I imported my license file, I received the same "... country code in the license file does not correspond ..." error message from my client (it was a pop up error where as the cfront error is command line), I copied the stx file from the ENC directory and the error msg went away and I was able to use the client connecting to the database server.

    I went so far as to copy the flf and stx files that run the client and database server without the error msg off of the computer then delete all instances of any flf or stx files on the entire computer (yes, it's a testing computer).

    Then put the copies of these two "working" files in the client directory, the database server directory and the cfront directory... The client works fine but the when running sample.exe in the cfront directory...

    Still the same error msg:
    The country code in the license file does not correspond to the country code (US) in the STX file. 
    Exception Handler called with Fatal Error: 3
    

    I had a look in the dberror.txt file and exception handler error #3 is Err_DB_DiskFull ??? my disk isn't full and the database has room in it??

    I can use the client to open the sample.fdb database, and modify it if I want... no permission errors or country code issues??

    I would really prefer not to get into the sample.c code to figure this out!

    It's really weird, erase computer and put a clean install of Windows 2000 server (with all service packs), install Navision 3.70b client, import license, install Navision DB server, install C/Front SDK... client and server work but sample.exe won't work!
  • DjangManDjangMan Member Posts: 15
    C/Front appears to use the fin.stx from the ENU folder. Typcially I copy the fin.stx from the ENC to the client and into the ENU when using C/Front.

    Django
  • GG Member Posts: 7
    =D>

    That's likely what the problem was. I had copied the stx file I had to those locations but it didn't work for me.

    I had a friend send me a stx file that they were using and copied it to the client, ENU and ENC folders and it started working!!! :D I guess the stx file I had contained the incorrect regionalization information for my license???

    Thanks to all for your assistance with this one!!!
Sign In or Register to comment.