System.IO.FileNotFoundException

Problem

You get this error when running your application:

System.IO.FileNotFoundException

This error may happen if you installed the Microsoft .NET Framework before you installed the Microsoft Internet Information Server (IIS).  The System.IO.FileNotFoundException indicates that a file is missing but is sure which file and why it would be missing.

Solution

We recommend you re-install Microsoft .NET Framework.  If you still get this error, re-register the .NET Framework by following the instructions in Re-Registering the .NET Framework.

The following explanation may be useful.  In particular, see the posting by "Dan (VS Core Team)".

http://dotnet247.com/247reference/msgs/30/151327.aspx

If the problem persists, try:

Step 1:  Copy the file Microsoft.VisualBasic.DLL to your application's ...\Bin folder, and run the application again.

Step 2:  Give "write" permission for "Everyone" on the following folder on your Windows 2000 server:

C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files

Step 3:  After setting the permission to the folder, run your application created by Iron Speed Designer.

Step 4:  Repeat the process for this folder:

C:\WINNT\TEMP

Step 5:  Make sure the Microsoft Index Server is turned off.  Sometimes the Index Server locks the file and prevents you from accessing them when they are being indexed.

See Also

Part VII:  Troubleshooting Applications

Application Will Not Run

Application Runs But No Data is Displayed

Application Error Messages