Click here to Skip to main content
15,887,881 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Does it mean that keeping controlRenderingCompatibilityVersion=3.5 in project upgraded to 4.5 framework, will still depend on framework 3.5 ?

In other words, if i uninstall framework 3.5 will above line give error or it will still work with only 4.5 framework.


What I have tried:

I have kept following in web.config file controlRenderingCompatibilityVersion=3.5
but i am not sure if it will work when 3.5 framework uninstalled from server.
Posted
Updated 20-Oct-16 0:20am
v2

The ControlRenderingCompatibilityVersion setting[^] simply activates a different code path in the .NET 4.0 code, which forces certain controls to render in the same obsolete way that they did in v3.5, ignoring the new improvements introduced in v4.

It doesn't introduce a dependency on v3.5, and your site will continue to work on a computer that doesn't have v3.5 installed.

However, you should evaluate why you need that setting, and look to modify your CSS and Javascript so that it works without that setting. The new rendering mode is much cleaner and more standards-compliant.
 
Share this answer
 
Thanks for your explanation and suggestion. As existing project is very huge for now I will kept the settings and as changing CSS and JavaScript with 4.5 compatibility will take time to develop and test application extra efforts.

Thanks Again.
 
Share this answer
 

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