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:

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

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

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

Also try doing the same for folder:

C:\WINNT\TEMP

Finally, check to 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 Won’t Run

Application Runs But No Data is Displayed

Application Error Messages