1

When I try to execute my program I receive FileNotFoundException, howerver dll exist in the same folder. How is that possible and how to fix the problem? Output below translated from localized messages of Russian Windows Server 2008 R2 Foundation:

C:\Oleg\bin\fast>FAST.exe

Exception: System.IO.FileNotFoundException: Can't load "QuickFASTDotNet.dll"
or dependent component. Can't find this file.
in FAST.FAST..ctor()
in FAST.Program.Main(String[] args) in C:\Oleg\fast\FAST\FAST\
Program.cs:line 474

C:\Oleg\bin\fast>dir QuickFASTDotNet.dll
    16.02.2012  16:45           117 760 QuickFASTDotNet.dll

The same binaries work on my Windows 7 machine (but doesn't work on another Windows Server 2008 R2 Foundation machine).

6
  • What is this `C:\Oleg\fast\FAST\FAST`? Commented Feb 29, 2012 at 17:09
  • What is the output path for the compiled executable? Is the .dll outputted to that directory as well? Commented Feb 29, 2012 at 17:10
  • What the assemblies referenced by QuickFASTDotNet.dll? are those also there? Commented Feb 29, 2012 at 17:20
  • @sll I guess this is cached by debugger, this path is from development machine. I tring to launch "debug" build. Commented Feb 29, 2012 at 18:47
  • @sebastian yes they are. binaries works on development machine. When I copy them to another machine they stop working Commented Feb 29, 2012 at 18:48

3 Answers 3

2

Please check out Debugging Assembly Loading Failures.

Most likely reason is some related file is not installed in the GAC on you Server machines, or x86/x64 mismatch.

Sign up to request clarification or add additional context in comments.

1 Comment

I have installed Microsoft SDKs to troubleshot the problem because I wanted to retrieve the Fusion log and that's it. Just installing Microsoft SDKs solved the problem, now application starts.
0

Perhaps, QuickFASTDotNet.dll call some function of another library and these library not found. You can use dllexp to check it.

Comments

0

I was getting same error when the file has been blocked by Windows since it's been copied from another computer. Right click on the dll file and click on "Unblock" button from the security tab

See https://superuser.com/questions/38476/this-file-came-from-another-computer-how-can-i-unblock-all-the-files-in-a

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.