Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 1045
Product
FileUp
Version
Version 5 and higher
Title
Configuration issue with FileUp running on ASP.NET 2.0
Problem

FileUp works with the .NET 2.0 framework. However, the sample web application that is shipped with the current installer is not configured for .NET 2.0. A change must be made to the configuration file (web.config or machine.config), or the following error message will be generated:

System.Web.HttpException: 
There is no build provider registered 
for the extension '.uplx'.
You can register one in the <compilation><buildProviders> 
section in machine.config or web.config. 

A build provider must be specified for the '.uplx' file extension. This was not neccessary in version 1.0 or 1.1 of the .NET framework. This requires changes to our current instructions for configuring your web.config or machine.config files.

Solution

The solution is to specify the build provider appropriate for .uplx pages. This build provider is the same build provider that is used to process .aspx pages. This is added as follows:


<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>

  <compilation>

    <buildProviders>

      <add extension=".uplx"
           type="System.Web.Compilation.PageBuildProvider" />

    </buildProviders>

  </compilation>

  <httpModules>
    <add name="FileUpModule"
      type="SoftArtisans.Net.FileUpModule, FileUpModule,
      Version=[x].[x].[x].[xxx],
      Culture=neutral, PublicKeyToken=f593502af6ee46ae"/>
  </httpModules>

  <httpHandlers>
    <add verb="*" path="*.uplx" type="System.Web.UI.PageHandlerFactory"/>
  </httpHandlers>

</system.web>

</configuration>

Created : 1/28/2005 11:46:21 AM (last modified : 8/2/2007 2:34:57 PM)
Rate this article!
Comments