Welcome Guest Search | Active Topics | Sign In | Register

Question about InitWorkerProcessExecutable Options
Qiang
Posted: Thursday, March 8, 2018 4:59:34 AM
Rank: Advanced Member
Groups: Member

Joined: 10/10/2016
Posts: 35
Hi EO,

We have a user reported the following error:

Location: Our Company.Ui.AppContext.EoInitialization(:0)
Exception: System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Our Company\eowp.exe' is denied.
at EO.Internal.jn.a(String A_0, Byte[] A_1)
at EO.Internal.jn.b(String A_0)
at EO.Base.Runtime.InitWorkerProcessExecutable(String exeFileName)
at Our Company.Ui.AppContext.EoInitialization()

We confirmed with the user, the file(eowp.exe, current version is 17.3.13) exists in the current path. So we feel confused about this exception.

Do you have any suggestions for this error?

Thanks & Regards,
Qiang
eo_support
Posted: Thursday, March 8, 2018 3:30:50 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

There are several different scenarios for this case:

1. File exists does not mean that your application can access it. You can try to use File.Exists to check if your application indeed can access the file; Or temporarily grant everyone full access to the file and see if it resolves this issue. If it does, then it's a permission issue;

2. The existing file might be of a different version. In this case InitWorkerProcessExecutable will try to overwrite it and this may fail. So check the file version with your DLL version;

3. You may have multiple instance of your application trying to create the file at the same time, in this case one might be writing the file and the other one can get this error;

The best way to resolve #2 and #3 is to include the file in your distribution so that it is installed with your application. This way the file will not be dynamically created and as soon as your application has sufficient permission to read and execute the file, you should no longer have problems.

Hope this helps. Please feel free to let us know if you still have questions.

Thanks!
Qiang
Posted: Friday, March 23, 2018 6:13:46 AM
Rank: Advanced Member
Groups: Member

Joined: 10/10/2016
Posts: 35
Hi,

We had checked the permissions(Read, Write, Read & execute) and version of eowp.exe, it was ok. But the error remains.
There are two kinds of mistakes.


1.
Exception: System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Our Company\eowp.exe' is denied.
at EO.Internal.jn.a(String A_0, Byte[] A_1)
at EO.Internal.jn.b(String A_0)
at EO.Base.Runtime.InitWorkerProcessExecutable(String exeFileName)
at Our Company.Ui.AppContext.EoInitialization()

2.
Exception: System.Exception: Failed to create child process, Win32 Error: 5
at EO.Internal.jn.a(Exception A_0, Boolean A_1)
at EO.Internal.jn.a(Int32 A_0, String A_1, Boolean A_2)
at EO.Internal.jn.b(String A_0, Boolean A_1)
at EO.Internal.jn.f..ctor(jn A_0, String A_1, String A_2)
at EO.Internal.jn.a(j A_0, azz A_1, String A_2, String A_3)
at EO.Internal.jn.a(Boolean& A_0, a9v[] A_1, String A_2, String A_3)
at EO.Internal.jn.a(a9v[] A_0, String A_1, String A_2)
at EO.Internal.jn.o.c()
at EO.Internal.jn.o.f()
at EO.Internal.jn.n()
at EO.Internal.jn.a(Boolean& A_0, a9v[] A_1, String A_2, String A_3)
at EO.Internal.jn.a(a9v[] A_0, String A_1, String A_2)
at EO.Internal.aqa.a(String A_0, String A_1)
at EO.Internal.av2.b()
at EO.Internal.av2.a(WindowsIdentity A_0)
at EO.WebEngine.Engine.Start(WindowsIdentity user)
at EO.Internal.av2.d()
at EO.Internal.cr..ctor(WebView A_0)
at EO.WebBrowser.WebView.x()
at EO.WebBrowser.WebView.a(IntPtr A_0, Boolean A_1)
at EO.WebBrowser.WebView.Create(IntPtr hWnd)
at EO.WinForm.WebViewHost.a(Object A_0)


Any advice?

Thanks
eo_support
Posted: Friday, March 23, 2018 3:56:00 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

Both errors are access denied error. It means your application do not have the permission on that folder. You can try to use File.Exists and Process.Start to test on eowp.exe in that folder and you should run into the same problem. Once you resolve that problem this problem should go away.

Thanks!
Qiang
Posted: Monday, April 23, 2018 5:45:25 AM
Rank: Advanced Member
Groups: Member

Joined: 10/10/2016
Posts: 35
Hi EO,

We had a meeting with the user and found the problem: Antivirus software(cylance, https://support.cylance.com/s/?language=en_US) prevents execution of the eowp.exe file.

It seems that this exe file is often blocked by some antivirus software. Can you take some actions to solve this problem?

Thanks & Regards,
Qiang
eo_support
Posted: Monday, April 23, 2018 9:01:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

We have no way to prevent every third party AntiVirus program from incorrectly identify our process as threat. Not only we do not know what algorithm/data they used to make their decision, but even if we knew, that algorithm/data can change when they update their software. So it is impossible for us to chase such a ghost on our end. You can either put our exe in their whitelist, or try to contact them and ask them to investigate why their software triggers false alarms. Please feel free to share our contact information with them and if they need our help, we will be more than happy to work with them.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.