Upgrade an ASP.NET Web Application to ASP.NET 4.0
Upgrade an ASP.NET Web Application to ASP.NET 4.0
Upgrade an Application's Web.config File from the .NET Framework3.5 to the .NET Framework4
1. Make sure that the application currently targets ASP.NET3.5.
2. Open the Web.config file in the application root.
3. In the configSections section, remove the sectionGroup element that is named "system.web.extensions".
4. In the system.web section, in the compilation collection, remove every add element that refers to an assembly of the .NET Framework.
Framework assemblies generally begin with "System.". Typically these have Version=3.5.0.0 in the assembly attribute. However, some assembly entries that have the 3.5.0.0 version number might refer to assemblies that were installed as part of add-on releases, or to custom assemblies. Do not delete these. If the Web.config file contains any of these references, you must investigate them individually to determine whether a later version is available and whether the version reference must be changed.
5. Add a targetFramework attribute to the compilation element in the system.web section, as shown in the following example:
In the opening tag for the pages section, add a controlRenderingCompatibility attribute, as shown in the following example:
Many ASP.NET4 controls render HTML that is compliant with XHTML and accessibility standards. However, the Web site that you are converting might have CSS rules or client script that will not work correctly if Web pages change the way they render HTML. If you want to take advantage of the control rendering enhancements in ASP.NET4, you can omit this attribute.
6. In the system.codedom section, in the compilers collection, remove the compiler elements for c# and vb.
7. Delete everything between the system.webserver section start and end tags, but leave the tags themselves.
8. Delete everything between the runtime section start and end tags, but leave the tags themselves.
9. If you have customized the Web.config file, and if any customizations refer to custom assemblies or classes, make sure that the assemblies or classes are compatible with the .NET Framework version4.
The following example shows an example Web.config file for a simple Web application that was converted from the .NET Framework version3.5 to the .NET Framework version4.
Associate an IIS Application with the .NET Framework4 in IIS 7.0
1. In Windows, start Inetmgr.
2. In the Connections pane, expand the server node and then click Application Pools.
3. On the Application Pools page, select the application pool that contains the application that you want to change.
4. In the Actions pane, click View Applications.
5. Select the application whose application pool hat you want to change and then click Change Application Pool in the Actions pane.
6. In the Select Application Pool dialog box, select an application pool that is associated with .NET Framework version4from the Application pool list, and then click OK.
What is so SPECIAL on ASPHostDirectory.com ASP.NET 4.0 Hosting?
We know that finding a cheap, reliable web host is not a simple task so we've put all the information you need in one place to help you make your decision. At ASPHostDirectory, we pride ourselves in our commitment to our customers and want to make sure they have all the details they need before making that big decision.
We will work tirelessly to provide a refreshing and friendly level of customer service. We believe in creativity, innovation, and a competitive spirit in all that we do. We are sound, honest company who feels that business is more than just the bottom line. We consider every business opportunity a chance to engage and interact with our customers and our community. Neither our clients nor our employees are a commodity. They are part of our family.
The followings are the top 10 reasons you should trust your online business and hosting needs to us:
- FREE domain for Life - ASPHostDirectory gives you your own free domain name for life with our Professional Hosting Plan and 3 free domains with any of Reseller Hosting Plan! There's no need to panic about renewing your domain as ASPHostDirectory will automatically do this for you to ensure you never lose the all important identity of your site
- 99,9% Uptime Guarantee - ASPHostDirectory promises it's customers 99.9% network uptime! We are so concerned about uptime that we set up our own company to monitor people's uptime for them called ASPHostDirectory Uptime
- 24/7-based Support - We never fall asleep and we run a service that is opening 24/7 a year. Even everyone is on holiday during Easter or Christmast/New Year, we are always behind our desk serving our customers
- Customer Tailored Support - if you compare our hosting plans to others you will see that we are offering a much better deal in every aspect; performance, disk quotas, bandwidth allocation, databases, security, control panel features, e-mail services, real-time stats, and service
- Money Back Guarantee - ASPHostDirectory offers a no questions asked' money back guarantee with all our plans for any cancellations made within the first 30 days of ordering. Our cancellation policy is very simple - if you cancel your account within 30 days of first signing up we will provide you with a full refund
- Experts in ASP.NET 4.0 Hosting - Given the scale of our environment, we have recruited and developed some of the best talent in the hosting technology that you are using. Our team is strong because of the experience and talents of the individuals who make up ASPHostDirectory
- Daily Backup Service - We realise that your website is very important to your business and hence, we never ever forget to create a daily backup. Your database and website are backup every night into a permanent remote tape drive to ensure that they are always safe and secure. The backup is always ready and available anytime you need it
- Easy Site Administration - With our powerful control panel, you can always administer most of your site features easily without even needing to contact for our Support Team. Additionally, you can also install more than 100 FREE applications directly via our Control Panel in 1 minute!
Happy Hosting!
Fort Lauderdale Miami Web Designers An effective and simple guideline for Web Application Development Free Web Scripts and How to Find Them How Can I Get Repeat Web Traffic? How to Utilize a Web Scraper to Provide You With Information Using Asterisk PBX for Web Conferencing What are Client-side web attacks? How Important are These Web Traffic Rankings? Use The Web To Lower Your Monthly Bills 4 Video and Web Conferencing Myths Debunked Build Your World wide web Property Company With Practically nothing How to Make a Web Page CakePHP Development: Ensuring Rapid and Robust Web Applications Development