Click here to Skip to main content
15,919,774 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I'm a beginner in csharp, when I try to run a code in visual csharp 2010 I get this message "L'assembly en mode mixte est créé avec la version 'v1.1.4322' du runtime et ne peut pas être chargé dans le runtime 4.0 sans d'autres informations de configuration".
I'm using windows 7, my frame work is .net 4.0
can you give me a solution please?
And thank you :)
Posted
Updated 4-Apr-11 23:16pm
v2

This[^] page may help you...
 
Share this answer
 
Comments
Nicole castel 5-Apr-11 5:52am    
Thank you for your help :)
Error translates as

"The assembly is created in mixed mode with version 'v1.1.4322' runtime and can not be loaded into the runtime 4.0 with no other configuration information"

http://stackoverflow.com/questions/4018924/mixed-mode-assembly-is-built-against-version-v1-1-4322[^]

So, looks like you need to add some config settings

XML
<startup uselegacyv2runtimeactivationpolicy="true">
   <supportedruntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
 
Share this answer
 
Comments
Nicole castel 5-Apr-11 5:52am    
Thank you for your help but can you tell me where shouls I add this lignes?
Dylan Morley 5-Apr-11 5:54am    
In you web.config \ app.config
Nicole castel 5-Apr-11 6:12am    
Sorry I'm a beginner and I didn't understand what you mean by a web.config\app.config,where I can find it please?
Dylan Morley 5-Apr-11 6:24am    
Have a look in the solution directory. If this is an Asp.Net project you should have a file called web.config in there....if not, choose 'Add File' then 'Web Configuration File'

Otherwise, if it's a Winforms application, same thing but 'Application Configuration File'

See here

http://msdn.microsoft.com/en-us/library/ms229689%28v=vs.71%29.aspx
Nicole castel 5-Apr-11 6:28am    
I found the application configuration file,I added this lines :<startup uselegacyv2runtimeactivationpolicy="true">
<supportedruntime version="v4.0" sku=".NETFramework,Version=v4.0">


but I still having the same problem,Sorry if i'm bothering you but I really need your help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900