I'm troubleshooting an intermittent GDI+ generic exception in a ASP.NET site on IIS 7.5 and Windows Server 2008 R2 (64-bit). This application uses Charts on a few.aspx pages. The site has a 32-bit ISAPI filter configured. Hence we had to enable the 32-bitness on the application pool for the site to make the ISAPI filter function properly. Install IIS 7.5 on Windows Server 2008 R2. IIS is one of the Windows Server® server roles. IIS can be installed through the graphical user interface (GUI) by using the new Server Manager interface after the Windows Server operating system is installed. Server Manager provides a single dashboard to install or uninstall server roles and features.

I have a web application developed in asp.net 1.1. Now I want to move it to WS2008 R2 64 bit IIS 7.5. As far as I know asp.net 1.1 is supported only on 32 bit machines. My question is can we run the 1.1 application in WS2008 R2 64 bit IIS 7.5.

Overview

IIS Application Initialization for IIS 7.5 enables website administrators toimprove the responsiveness of their Web sites by loading the Web applicationsbefore the first request arrives. By proactively loading and initializing allthe dependencies such as database connections, compilation of ASP.NET code, andloading of modules, IT Professionals can ensure their Web sites are responsiveat all times even if their Web sites use a custom request pipeline or if theApplication Pool is recycled. While an application is being initialized, IIS canalso be configured to return an alternate response such as static content as aplaceholder or “splash page” until an application has completed itsinitialization tasks.

More information about Application Initialization can be found atIIS.net

Install

Download the extension fromhere. Oncedownloaded run the executable on the IIS server and follow the instructions,ensuring that you restart the server at the end.

Using Application Initialization

Microsoft

Unfortunately Application Initialization was not built into IIS 7.5, unlike IIS8, so you do not get a nice GUI in IIS Manager. Without the GUI you have tomanually edit the applicationHost.config which is found by default in the%WINDIR%System32inetsrvconfig directory.

When editing the applicationHost.config file you MUST use a 64 Bit texteditor, otherwise you end up with a ghost copy of your config file at%WINDIR%SysWOW64inetsrvConfig and your configuration changes will notbe used. I use notepad for editing applicationHost.config.

App Pool Changes

Iis 7.5 64 Bit Download

To set the app pool to take full advantage of application initialization youneed to make a few modifications. A sample default app pool is shown below.

The changes you need to set the start mode of the application pool to alwaysrunning. Another change that is beneficial although not strictly needed is toset the idle timeout of the application to 0, this will ensure that theapplication will not cool down if not used for a short while (default 20minutes).

Application Changes

In addition to application initialization, you can enable the initializationprocess to start whenever the application pool is started. You do so by settingthe preLoadEnabled attribute in the element to “true”. For this tooccur, the start mode in the element must be set toAlwaysRunning.

Iis 7.5 Download 64 Bit

A default application.

A modified application.

Iis 8.0 Download

Webconfig Changes

The final changes to get application initalization fully functioning is to makea webconfig change to your site. The basic configuration I use is below. ThedoAppInitAfterRestart setting specifies that the initialization process isinitiated automatically whenever an application restart occurs.

Testing Everything Works

The only way I have found to test that you have set application initializationset correctly up is to have a copy of your application, one were you setupapplication initialization and one were you do not. Renault media nav maps download. I then recycle bothapplication pools, wait a short time (maybe 60 seconds), then open your browserdeveloper tools and the network tab and hit the URL of your website and comparethe time taken to get the initial response.

Using PowerShell To Speed Things Up

The steps above to setting up Application Initialization are both tedious anderroneous and you are editing potentially live configuration files by hand, thiscan lead to errors occurring and potentially breaking your websites. This is whyI have created a couple of PowerShell scripts to set theapplicationHost.config settings (you still have to set the web.config filemanually).

Web Administration Module

The Web Administration Module is a PowerShell module that contains InternetInformation Services (IIS) cmdlets that let you manage the configuration andrun-time data of IIS. More information on this module can be found onTechNet

Update Scripts

Below are a couple of PowerShell Scripts. That automate the settings that haveto be defined, as mentioned above. The scripts need to run in 64 Bit mode withPowerShell 4.

The first script sets the application pool settings and needs at the very leastto have the name of the application pool passed as a parameter.

Iis 7.5 Manager 64 Bit Download

The second script sets the application settings and needs at the very least tobe passed the application name passed as a parameter.

Congratulations You now know how to setup application initialization on your

IIS servers.

realfoodmatters.co – 2018