Reputation: 24067
Running one application I receive such error:
C:\Program Files\P2CGate\sdk\samples\net\basic>nsend.exe
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'cgate_net, Version=0.9.10.31381, Culture=neutral, PublicKeyToken=null' or
one of its dependencies. Не удается найти указанный файл.
at send.Send.Main(String[] args)
The message is too generic, because I don't know exactly what can not be loaded. It seems cgate_net
is loaded because I do see some details Version=0.9.10.31381
.
So I guess some of dependencies
can not be loaded, but which one exactly?
Without knowing what can not be loaded I do not know how can I fix this problem. Why C# doesn't print what exactly can not be loaded and how to obtain this information?
Upvotes: 2
Views: 3104
Reputation: 839114
If an assembly or one of its dependencies fails to load, you can see more details by looking at the Fusion logs:
See also this related question:
Upvotes: 4
Reputation: 150208
The Fusion Log Viewer is your friend here.
The fusion log viewer monitors attempts to resolve .NET assemblies and displays the attempts visually. It will tell you which assembly could not be resolved and how it tried to resolve it.
Be sure and run as Administrator or it will silently just do nothing.
Upvotes: 4