[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 877
  • Last Modified:

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
0
GEHC
Asked:
GEHC
  • 4
  • 2
  • 2
  • +1
1 Solution
 
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 ThakurCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 ThakurCommented:
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
 
GEHCAuthor Commented:
You were, I was missing a third party library.
Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now