ReticentRobot / SnipeAgent

Windows Agent for Snipe-IT Open Source Asset Management
Apache License 2.0
26 stars 6 forks source link

FileNotFound exception upon running SnipeAgent.exe #1

Open LucianTheDivine opened 3 years ago

LucianTheDivine commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

ksduster commented 2 years ago

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