Skip to main content
CoolKiwiBloke
Explorer II
May 25, 2022
Question

Forticlient VPN: A JavaScript Error Occurred in the Main Process

  • May 25, 2022
  • 12 replies
  • 146036 views

I have been successfully using the Forticlient VPN for some time now. Today I upgraded to the latest version and since then I have been receiving the following error. I have uninstalled, reinstalled, added the latest MS C++ redistributables and am still getting this error. Any suggestions?

 

Forticlient.PNG

12 replies

Anthony_E
Staff
Staff
May 29, 2022

Hello CoolKiwiBloke,

 

Thank you for using the Community Forum.

I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.

 

Regards,

Best Regards
Anthony_E
Staff
Staff
May 30, 2022

Hello,

 

I found this post where a user has the same issue and found the solution:

 

https://www.reddit.com/r/fortinet/comments/lpr8ux/anyone_having_javascript_error_on_main_process/

 

Please, tell me if it helped you.

 

Regards,

Best Regards
CoolKiwiBloke
Explorer II
May 31, 2022

Thanks for looking into it @Anthony_E I have indeed tried the suggestions on that link and a couple of others I found. But in the end the only solution was to roll back to an older version, 7.0.2.0090.

Anthony_E
Staff
Staff
June 1, 2022

Hello CoolKiwiBloke,

 

No problem at all.

I am glad you could find a solution and feel free to contact us if you need anything.

 

Regards,

Best Regards
CoolKiwiBloke
Explorer II
June 1, 2022

Well - its more of a workaround than a solution. It does mean I am stuck on this version unable to upgrade which isn't ideal. So fingers crossed an actual solution is available at some point :)

VelirIT
Explorer II
July 13, 2022

I have this same issue. It is not the issue that is fixed by installing Microsoft Visual C++ Redistributable (but I tried it anyway - no luck), the error messages are different. My error message matches this one exactly except for a few of the numbers which is probably caused by my using 7.0.6. 

I am in charge of our EMS and can roll back all the way to 7.0.1* which works but will not connect to our EMS because it won't support the certificate we have installed, so I am completely stuck with no answer here. 

 

So to summarize: This is a real issue. It's different than the one fixed with the MS C++ Redist. And in cases like mine it is a 100%, unresolved blocker.

 

*7.0.2 is not available for some reason in our EMS. It jumps straight from 7.0.1 to 7.0.3. Maybe it was pulled?

MohamedAbdulWahab
New Member
August 17, 2022

I have this same issue also. Version 7.0.2.0090 was installed on the workstation, then upgraded to 7.0.6.0290 and received the error. The solution was to downgrade to version 7.0.2.0090. But in the new workstation, the new version 7.0.6.0290 was installed successfully with no issue.

voiturefrancaise
New Member
September 4, 2022

Hi, we are on 7.0.6.0290 and we still have the issue which is quite frustrating. Using an older version is not an option for us actually. Is there really no other solution available?

VelirIT
Explorer II
September 7, 2022

I have new information which might help. My boss noticed if you go into the Web portal and try to launch the client from there (https://0.0.0.0:4433/remote/login?lang=en) and select "Launch FortiClient" it Always fails with this same JavaScript error. This fails even for users who are not otherwise experiencing problems with the client. At the moment, none of our users can launch FortiClient this way. Any chance others in this thread can test this?

voiturefrancaise
New Member
September 8, 2022

I want Fortinet to fix it. We use Liquit so apps know if user is within the lan network or elsewhere. Due to this error people need to bypass lots of apps to prevend this annoying error.

 

gfleming
Staff
Staff
September 9, 2022

This should be fixed in 7.0.7. See release notes and details on bug ID 798055.

VelirIT
Explorer II
September 10, 2022

7.0.7 seems to have worked for me. We're looking into an issue where the EMS version isn't automatically connecting and has to be manually attached, but that could still be specific to us.

devo123
New Member
September 12, 2022

I faced the same issue. Took me 2 days to figure out what went wrong. After reading a lot of articles visual c++ was causing issue. So I installed 2015-2022 and now its working fine. Pasting the link to download visual c++ here. 

https://aka.ms/vs/17/release/vc_redist.x64.exe

rstevens
Visitor III
February 25, 2025

I can confirm this works on Windows 11 24H2

voiturefrancaise
New Member
September 16, 2022

The error returned as if it hasn't been gone. Unfortunately the same error.

FranFisc1
Visitor III
September 19, 2023

One year later,
FortiClient VPN 7.2.1..
and I am still facing the same error !
I connected to the FortiGate WebVPN portal i.e.  https://vpn.acmecompany.xyz and clicked on "Launch FortiClient".
This starts the (already installed) FortiClient Executable on the PC with one argument:
(thanks to sysinternals for their process explorer ;)


"C:\Program Files\Fortinet\FortiClient\FortiClient.exe" "forticlient:///?hostname=vpn.acmecompany.xyz&"

Trying this on the cmd line in Windows,
I found that FortiClient.exe only starts up successfully if the command is executed in the directory "C:\Program Files\Fortinet\FortiClient".

If FortiClient exe is started from an other directory, the JS error above is displayed.


The argument where to connect to seems to be ignored in any case....

 

I can understand that the free FortiClient VPN is not TAC supported, so I cannot open an SR.
And I understand that FORTINET wants to sell their EMS and FC Licenses,
but I would appreciate a lot, if at least basic functionality
like launching the executable from a browser and initiating a connection to the hostname
would work with the free version... 

GeoKot
Visitor III
October 24, 2023

Its how @FranFisc1 writes. I have the same error after setting up the VPN Portal and also deploy the FortiClient VPN via intune. This is a basic functionality and should not be only supported or fixed if you have an EMS subscription. 

SamClaid
New Member
May 15, 2025

Try opening Configure Java window, check the advanced tab and enable latest TLS versions.

CoolKiwiBloke
Explorer II
May 18, 2025

My windows doesn't have a configure Java window that I can find.