System.IO.FileNotFoundException

Winform C# application runs fine on development machine. Throws attached System.IO.FileNotFoundException error when run on any other machine. What am I missing here?
error.bmp
GEHCAsked:
Who is Participating?
 
Anurag ThakurConnect With a Mentor Technical ManagerCommented:
if an application runs fine on the development machine and not on the server then the most likely cause is the configuration
- files may be missing
- rights are not given to the user under whose account the application is being executed (you said you are using admin so not an issue here)
- some COM/DOM configurations might be required (because on servers that has to be specifically done)
- configuration totally depends on what all features you are using and what all third party tools are being used in the application
0
 
rpkhareCommented:
The question is too short to understand. Is your application trying to open a file or reading something from any file. While you running the application on the other machine, that file may be missing.
0
 
Anurag ThakurTechnical ManagerCommented:
the exception clearly indicates that the file which the application is trying to access is not found at the location specified.
try to add break points and debug the application

more details will be useful for us to understand the issue
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
mokuleCommented:
Is the same with release version of the program?
0
 
mokuleCommented:
Remember also that if the user has no rights to read the file it's not visible for the program.
0
 
GEHCAuthor Commented:
See screenshot of UI. Each button launches a .bat, vbs, or exe file contained in folder C:\Scripts. It does not however read/write from file system at launch - not until a button is clicked. But this error prevents app from even launching.

application.bmp
0
 
GEHCAuthor Commented:
Also as I mentioned before, no point in debugging as it runs and functions fine on dev machine.
0
 
rpkhareCommented:
Probably .NET is unable to seek a required file. Does the second machine has administrative rights?
0
 
GEHCAuthor Commented:
I have tried on multiple machines. If you are asking am I logged on as administrator on other machines, yes.
0
 
GEHCAuthor Commented:
You were, I was missing a third party library.
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.