Click here to Skip to main content
15,912,457 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Could not load file or assembly 'App_Code' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Posted
Updated 5-Nov-18 6:59am

I had this problem when I upgrade my project (other .NET Framework version). I used to copy my web.config (a file with my Connection strings, app settings, etc) then I had this trouble.

I solved using the web.config that I had after the .NET Framework upgrade and set the settings in this latest file.
 
Share this answer
 
Comments
CHill60 6-Nov-18 3:49am    
Not exactly adding anything new but at least have the decency to explain what the difference is between the two files (like the target .net version or assembly version or whatever)
KevGUID 6-Nov-18 8:16am    
Exactly you are right. You didn't add Nothing. It happens a long time ago. Sorry I didn't remember the .NET version or the tags that changed. This is just a tip about how I solved this problem. Have a nice day.
CHill60 6-Nov-18 11:00am    
You've said that you don't "remember the .NET version or the tags that changed" - I strongly advise you to get familiar with the concepts of backups and version control - then you would just need to do a file compare to determine what had changed

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