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 

Could not load file or assembly AssemblyLoaderx86 on Win8

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Infralution Support Forum Index -> .NET Encryptor FAQ
View previous topic :: View next topic  
Author Message
Infralution



Joined: 28 Feb 2005
Posts: 4972

PostPosted: Fri Jul 12, 2013 11:58 pm    Post subject: Could not load file or assembly AssemblyLoaderx86 on Win8 Reply with quote

If your application is compiled using .NET 2 or 3 and you run the application on Windows 8 (which does not have these frameworks installed by default) then a warning is displayed stating that .NET 2/3 is required and you are given the option to install .NET 2/3 or to try running the application anyway (under .NET 4). If you select the latter option then the following error may occur (or the application may just hang):

Quote:
An unhandled exception (Could not load file or assembly AssemblyLoaderx86 ...) occurred while bootstrapping the application


It is possible to get.NET 2/3 applications to run under .NET 4 (without any warning messages) by adding a config file for the executable that specifies the supported .NET runtimes. However when your application uses mixed mode assemblies (which contain managed and unmanaged code) like AssemblyLoaderx86 you need an additional flag (useLegacyV2RuntimeActivationPolicy) in the config file to make this work properly. The required config file is shown below:

Code:
<?xml version="1.0" ?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    <supportedRuntime version="v2.0.50727"/>
  </startup>
</configuration>

_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Infralution Support Forum Index -> .NET Encryptor FAQ 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