Link to home
Start Free TrialLog in
Avatar of GEHC
GEHC

asked on

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
Avatar of rpkhare
rpkhare
Flag of India image

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.
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
Is the same with release version of the program?
Remember also that if the user has no rights to read the file it's not visible for the program.
Avatar of GEHC
GEHC

ASKER

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
Avatar of GEHC

ASKER

Also as I mentioned before, no point in debugging as it runs and functions fine on dev machine.
Probably .NET is unable to seek a required file. Does the second machine has administrative rights?
Avatar of GEHC

ASKER

I have tried on multiple machines. If you are asking am I logged on as administrator on other machines, yes.
ASKER CERTIFIED SOLUTION
Avatar of Anurag Thakur
Anurag Thakur
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GEHC

ASKER

You were, I was missing a third party library.
Thanks!