vb.net - .NET Framework compatibility issue -


we have 1 vb.net winform application built against .net framework 1.1 uses referenced assemblies (class library) .net 1.1 gac location , works fine.

but later have migrated referenced assembly files .net 4.0 , deployed locally in application executable's folder.

so manifest file of main application in .net 1.1 has referenced assemblies in .net framewok 4.0

and application works if have .net framework 1.1 installed on client machine , if remove .net framewok 1.1 application crashes while getting data referenced assemblies.

client machine has .net framewok 4.0 installed , .net runtime supports backward compatibility why application crashes after removing .net 1.1 framework.

please shed light on issue. thanks.

first of all, .net backward compatibility not guarantee correct behavior. means later version of runtime (4.0) can run assembly of earlier version (1.1). since correct behavior not guaranteed, 4.0 runtime not implicitly run assemblies built earlier version of runtime. enable this, have explicitly specify <supportedruntime> element in configuration file of assembly, activating backward compatibility. if this, however, you'll have test app again. it's recommended built 1.1 assemblies against 4.0 runtime rather using <supportedruntime>.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -