Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 577
Product
FileUpEE
Version
4.0.1
Title
DotNet runtime error: "This application has requested the Runtime to terminate it in an unusual way...."
Problem
Using FileUp in .NET, Rebuilding and running the application for the first time, runtime errors may occur.

The error may look like the following:

Solution
Error Explanation

This error is caused by a known bug in the Microsoft C++ compiler for .NET version 1.0.
Assemblies produced with this compiler do not properly handle the AppDomainUnload event. Essentially, when the AppDomain is reloaded, the unmanaged code still holds on to a reference to the previous AppDomain, and when calls are made into the unmanaged code, it fails since the AppDomain it is referencing is out of date. The AppDomain is reloaded whenever the app has to be jitted.

This issue is an acknowledged Microsoft problem when you are going from Unmanaged to Managed C++ code in .NET. Here is a Microsoft KB article that explains the issue in depth:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q309694

Resolution
  1. While running the 1.0 version of the framework, upgrade to package version 4.02 of FileUp (DLL version 4.0.2.0). Microsoft's recommended work-around has been implemented in this version of FileUp. Uninstall your current version of FileUp and upgrade to 4.02+.
Configuration Info
.NET, IIS 5
Created : 6/18/2003 12:55:32 PM (last modified : 7/25/2003 11:40:10 AM)
Rate this article!
Comments