Solved

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

Posted on 2003-11-06
8
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 12

Accepted Solution

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

Expert Comment

by:venki_gun74
ID: 9693455
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
ID: 9693666
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
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 

Author Comment

by:fathimasulthan
ID: 9698428
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
ID: 9699740
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
ID: 9700816
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
ID: 10256080
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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