Solved

An exception 'System.IO.FileNotFoundException' has occurred In ImgView.exe

Posted on 2003-11-06
8
256 Views
Last Modified: 2008-02-01
Hi all,

I have developed an application in VB.NET. and created the deployment package.
I tried to install the application suing teh setup pakage. it has installed teh applciation. But when I try to execute teh application installed it gives teh following error.


An exception 'System.IO.FileNotFoundException' has occurred In ImgView.exe

Can anybody tell me what is cause And how to rectify it?

thanks
Fathima
0
Comment
Question by:fathimasulthan
8 Comments
 
LVL 12

Accepted Solution

by:
roverm earned 25 total points
Comment Utility
Do you reference any other file inside your application?
Or open a picture? Or......
0
 

Expert Comment

by:venki_gun74
Comment Utility
r u sure that imgview.exe has been added to ur deployment setup pack. Clarifiy it by verifying in cab files (rigth click cab file and open with winzip ).
c that it should be placed in the bin directory of ur application folder
0
 
LVL 42

Assisted Solution

by:frodoman
frodoman earned 25 total points
Comment Utility
It sounds like your application is trying to open an outside file - I'm guessing ImageView.exe is your application, right?

This could be an image or a text file, an access database, etc.  Whatever it is, the file that your application is looking for doesn't exist.  Probably it's something you used on your development machine and just forgot to include with your installation program.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:fathimasulthan
Comment Utility
Hi all,

Thanks for each ones Input.

Frodoman,
   I tried to install in my development machine Only. In my development machine itself it gives this error.

Yah , i am My applciation I am reading A text file. Anybody have idea of the dll name that I shoudl refer to to read from text file?

Please help
Fathima
0
 
LVL 12

Expert Comment

by:roverm
Comment Utility
I don't think that the problem is the reference to the DLL but the path to the text file you are trying to read.
0
 
LVL 42

Expert Comment

by:frodoman
Comment Utility
Fathima,

Just because you installed on the development machine and got an error doesn't mean my initial observation was wrong.  There is a file you're trying to read that simply isn't where you're looking for it.  When you're debugging, the file exists and your application works fine.  

When you installed on your development machine I assume you installed it in a different folder (not your development folder) in which case the file wasn't added.  Just because the file exists on the computer doesn't mean you're pointing to it correctly.

You need to add the text file that you're reading to your installation program and that should solve the problem.

Frodoman
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: roverm {http:#9699740} & frodoman {http:#9700816}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now