Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFound exception upon running SnipeAgent.exe #1

Open
LucianTheDivine opened this issue Apr 8, 2021 · 4 comments
Open

FileNotFound exception upon running SnipeAgent.exe #1

LucianTheDivine opened this issue Apr 8, 2021 · 4 comments

Comments

@LucianTheDivine
Copy link

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'SnipeSharp, Version=0.3.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at SnipeAgent.SnipeAgent.Main(String[] args)

The above exception is thrown when I try to run the exe after editing the config file as instructed.

@LucianTheDivine
Copy link
Author

Actually, I see that in C:\Program Files (x86)\Snipe-IT\SnipeAgent that there is a SnipeAgent.exe and a config file, but if you go one level deeper, there is another SnipeAgent.exe and config file. That one is the one to edit and run, and then it works.

@Ng-marelec
Copy link

Hi,
Thanks to this comment we were able to get it working.
Maybe a good idea to remove that .config file in the next release?

@javiercivica
Copy link

javiercivica commented May 28, 2021

I'm trying to run it as you say and it keeps getting the same error @LucianTheDivine

@ksduster
Copy link

I'm trying to run it as you say and it keeps getting the same error @LucianTheDivine

It works for me going to C:\Program Files (x86)\Snipe-IT\SnipeAgent\SnipeAgent\SnipeAgent.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants