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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
mokuleCommented:
Is the same with release version of the program?
0
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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
Anurag ThakurTechnical 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GEHCAuthor Commented:
You were, I was missing a third party library.
Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.