Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CheckProcessIntegrity throwing file not found exception

 
Post new topic   Reply to topic    Infralution Support Forum Index -> .NET Encryptor Support
View previous topic :: View next topic  
Author Message
PaulS



Joined: 03 Jul 2013
Posts: 24

PostPosted: Thu Oct 04, 2018 9:21 pm    Post subject: CheckProcessIntegrity throwing file not found exception Reply with quote

What could cause this? The app runs okay on my windows 7 development machine, but fails on windows 10 in a virtual machine.


Application: myapp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at myapp.Bootstrap.Program.CheckProcessIntegrity()
at myapp.Bootstrap.Program.Main(System.String[])
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun Oct 07, 2018 6:07 am    Post subject: Reply with quote

Are you distributing the AssemblyLoader4x86 and/or AssemblyLoader4x64 dlls with your application and C++ runtime dlls (mscvp120.dll and msvcr120.dll)?

If you are compiling you application as an x86 application then the AssemblyLoader4x86.dll and C++ runtime dlls need to be installed in the same folder as your executable.

If you are building an AnyCPU application then you have to distribute both the AssemblyLoader4x86 and AssemblyLoader4x64 dlls in separate x64/x86 subdirectories along with the C++ runtime files for x86 and x64 (as shown in the sample projects).
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
PaulS



Joined: 03 Jul 2013
Posts: 24

PostPosted: Mon Oct 08, 2018 6:32 pm    Post subject: Reply with quote

I think I found the problem. I am using AssemblyLoader4x86.dll, version 11/18/2013. I used CFF Explorer, and the import directory shows dependencies on msvcp100.dll and msvcr100.dll. So I copied these into my executable directory and the program loaded okay, error gone.

This was a hidden dependency I did not know about until I started to test sql server localdb 2017 with my app. My app requires localdb, and I have been using localdb 2012. It appears the installer for localdb 2012 installs these 2 dlls, and localdb 2017 does not. So quick fix is to include these dlls with my installer.

However, perhaps I should move to a newer version of the Encryptor software? Is Infralution the author of AssemblyLoader4? Maybe you could include a version number with the dll.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Oct 10, 2018 11:04 am    Post subject: Reply with quote

Yes the AssemblyLoader4x86 dll is part of .NET Encryptor. If you have a license for .NET Encryptor you can download and use the latest version from http://infralution.com/downloads.html. The current version uses a later version of the C++ runtime DLLs (mscvp120.dll and msvcr120.dll)
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> .NET Encryptor Support All times are GMT
Page 1 of 1

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


Powered by phpBB © 2001, 2005 phpBB Group