Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 1381
Product
FileUp
Version
5.x
Title
Configuring FileUp with .NET 4.0
Problem
You would like to upgrade your FileUp application to run with .NET 4.0
Solution

Overview

The following tutorial will walk you through the steps of configuring your FileUp application to run with .NET 4.0. This tutorial assumes that you already have FileUp installed based on your version's documentation. This tutorial will show you how to configure your application pool to run with .NET 4.0, and how update the Application's Handler Mapping to work with .NET 4.0 and FileUp.

Configure or Create an Application Pool

Add or configure an application pool with the following settings:

  1. Set the .NET Framework version to:  .NET Framework v4.0.30319
  2. Set the Managed pipeline mode to Classic



  3. On a 64bit operating system, set the application pool to run in 32bit mode. This can be set under the application pool’s advanced settings by setting Enable 32-Bit Applications to true


  4. Once your application pool is created or configured set your application to use the new application pool.

Configure the Application to Use the New Application Pool

Windows Server 2008:

  1. Open IIS (Start -> Control Panel -> Administrative Tools -> Internet Information Services)
  2. Right click the application in IIS and go to Manage Application > Advanced Settings…
  3. In the Advanced Settings window, under "General" select “Application Pool”, click on the button that appears when selected. This will open the Select Application Pool window.
  4. Change the Application Pool setting to the new Application Pool from the drop-down.



  5. Click OK


Configure the Handler Mapping on the Application

Once the application pool is configured to use .NET 4.0, the handler mapping must also be configured to also use .NET 4.0.

  1. Navigate to the  virtual directory feature view
  2. Under IIS section double-click Handler Mappings



  3. From the menu on the right choose Add Script Map
  4. On the first text box enter: *.uplx
  5. Click the browse button
  6. Navigate to C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll and choose aspnet_isapi.dll.  

    Do not select the aspnet_isapi.dll located at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\. This is the 64bit version and is not compatible with FileUp




  7. In the third text box enter a name (You can call it anything you like)
  8. Click OK

Troubleshooting:

Make sure there is a <handlers> section for the new .uplx extension in web.config and that it points to .NET v4. It should have been added by IIS. If it wasn't automatically added, you would receive this error at runtime: "The requested content appears to be script and will not be served by the static file handler”.

The following section should be placed before the </configuration> tag but after the closing of </system.web> tag:

  1. <system.webServer>
  2.         <directoryBrowse enabled="true" />
  3.         <handlers>
  4.             <add name=".uplx .NET 4.0" path="*.uplx" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
  5.         </handlers>
  6.     </system.webServer>

Restart IIS (type “iisreset” at the command line)

Created : 6/20/2011 5:07:26 PM (last modified : 6/20/2011 6:14:26 PM)
Rate this article!
 
Comments