System.IO.FileNotFound System.RunTime - Could not find the file specified
System.IO.FileNotFound System.RunTime - Could not find the file specified
I am currently trying to build a console exe using Team Foundation Server build. Whenever I kick off a build using tfs, and try running the exe that was built. I get a
"System.IO.FileNotFoundException: Could not load file or assembly 'System.RunTime, Version 4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."
Here's the odd part, if I build locally in Visual Studio 2017 with the build setting set to "Release". The executeable runs completely fine.
Its worth adding that I am trying to run this exe on a 2003 server. The tfs built exe will work no problem on a 2016 server, but gives the above exception when run on a 2003 server. It needs to be able to run on both 2003 and 2016 Windows Server.
The exe is targeting .NET framework 4.0, and the project settings are set to "Any CPU", so I am unsure what the problem could be here. Any Ideas?
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
There are probably some dependent dlls that are not in the right directory when you are coping the built exe
– maccettura
1 min ago