How to run a C# application on WindowsNT?

354 views Asked by At

On trying to run a c# hello world program on Windows NT4 SP6a, the error message says .net dll's not found; however on trying to install .net framework 1.1 on WinNT i get an error: "Application has generated an exception that could not be handled". When i run the C# app on Windows 7 there are no issues.

1

There are 1 answers

2
Martin On

Windows 7 supports the latest .NET framework whereas WinNT supports only .NET 1.1 and installing .NET 1.1 on WinNT is not straightforward.

To get over those errors, do the following:

  1. To fix this we need to copy a folder from a Windows Server 2003 machine to WinNT machine.
  2. Find a Windows Server 2003 machine on which .NET framework is already installed.
  3. From the Win 2003 machine copy "Framework" folder [C:\Windows\Microsoft.NET\Framework]
  4. Create a folder "Microsoft.NET" in WinNT machine at [C:\Winnt\Microsoft.NET]
  5. Copy the "Framework" folder from step-3 to "Microsoft.NET" folder in WinNT machine (step-4).
  6. Now you have [C:\Winnt\Microsoft.NET\Framework] folder structure in the WinNT machine.
  7. Run dotnetfx.exe and the installation should complete without incident.

reference