473,497 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

System.IO.FileNotFoundException

11 New Member
Hi,
When I try to run my program I get this error message:

"An exception 'System.IO.FileNotFoundException" has occurred in maintenance.exe"
"However, no debuggers are registered that can debug this exception. Unable to JIT debug"
Now, I don't try to read any files on purpose so I cannot insert a catch statement. Is there any other way to find out what file it tries to read?
Apr 3 '09 #1
6 3235
Plater
7,872 Recognized Expert Expert
Do you not have visual studio? How did you build the software?
Without getting a look at what is really happening, it would be hard to tell.

The error message shown should have had a little "details" link or "what is contained in this report" type location?
Apr 3 '09 #2
darkminos
11 New Member
no there is no additional details... and that’s my problem...

I use VS2008 running on vista, when I try to install the software on a Win XP station It comes up with this error straight away... what I’m really asking is - is there a way to catch a FileNotFoundException before anything else is happening so I could get a rough idea of what file it might be looking for?
Apr 3 '09 #3
Plater
7,872 Recognized Expert Expert
Did you make sure to check for correct versions of .NET installed?
Are you using any extra DLLs? (Office interop, thirdparty, custom, etc)
Apr 3 '09 #4
darkminos
11 New Member
.NET is @ 3.5... I actually do use thirdparty controls, but I think I did include all the DLL's into the installer. I will double check that later today and post if I had any luck...
Apr 3 '09 #5
tlhintoq
3,525 Recognized Expert Specialist
You may also need .NET 2 - 3.5 is not an all-inclusive upgrade that includes everything of 2. It is additions to the existing functions of .NET 2
Apr 4 '09 #6
tlhintoq
3,525 Recognized Expert Specialist
@darkminos
Log files. Write a simple text file at the start of each method.

Attempting to: {blah] with file {FileWidgetPath}
Success : 10 records found
Attempting to: {some cool function}



As far as the file not found exception. You should make a point of writing your software a bit more robustly so it can gracefully handle such problems. You can't assume the files are there... or that the boot drive is C:... or that the monitor is at least 1024x768. Or that the file you want isn't already in use... or that it isn't corrupt.

You should be wrapping your functions in try/catch blocks...
You should be checking if a file even exists before you try to access it.
After you access it, you should validate the data when that method is done before the next method tries to do something with it.
and so on.
Apr 4 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
13991
by: Paul Gronka | last post by:
I've got a VB.NET windows application (written in VS .NET 2003) that makes a call to WMI for retrieving the MAC Address from the client's PC. It works on 4 out of the 5 PC's tested so far. All...
1
6657
by: ulf | last post by:
Hello, After I got a FileNotFoundException in my real life CSharp code, I nailed it down to the following line: System.EnterpriseServices.ResourcePool rp = new...
3
2063
by: Karl Hungus | last post by:
A cs file I compiled into an assembly dll is in my bin directory. In the cs file I have a using statement for System.Xml I compiled it using this command: csc /out:XmlContent.dll /t:library...
2
2296
by: aallee83 | last post by:
i'm new in asp.net after develop my solution i copied it on the server where I want it to run but something cares... WHAT?!?! thank you in advance File or assembly name System, or one of its...
0
1808
by: Eric van Wijk | last post by:
Hi All, After installing SP1 for Windows 2003, I'm running into the 'Error loading type library/DLL' exception when using CDO through System.Web.Mail: ...
3
9065
by: James | last post by:
Hi guys Do you ever get the exception in Managed C++? How can I know which file or dll is missed?
3
4962
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
1
7130
by: kkizer | last post by:
I have a problem with this simple code below. Moving the files works perfectly, but once in a blue moon the file that it is trying to move dissapears before it can move it. and when this happens...
2
7920
by: jjlagtap | last post by:
Hey everyone When I try to open a file i get the Exception listed below. The weird thing is it works when I run the web app locally and when i use a remote server and open a file on my computer....
2
10983
by: =?Utf-8?B?c2FtMDFt?= | last post by:
I have a remoting application that was developed on a Windows XP SP2 machine with VS2005 SP1. I finally got everything deployed using Wix 3.0, and it works great. Problem is, when I install the msi...
0
7120
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6991
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7196
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6878
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4583
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
286
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.