Reputation: 6668
I have a wpf application that runs on my computer fine.
The application opens on a colleagues computer but when he clicks one of the buttons an exception appears.
The exception is
Could not load file or assembly 'ABC, Version=1.0.0.0, Culture=netural, PublicKeyToken=null' or one of its dependencies
My application has two projects, ABCWPF & ABCLibrary. I had a console application which was called ABC.
I made a copy of this project and changed the output type to Class Library. I renamed all the folder names from ABC to ABCLibrary as well as the two files below,
ABC.csproj renamed to ABCLibrary.csproj
ABC.user renamed to ABCLibrary.user
I also updated one line in the solution file for ABCLibrary shown below. Please note I didn't change the GUID's I read that visual studio will automatically do that.
Project("{Some GUID}") = "ABCLibrary", "ABCLibrary\ABCLibrary.csproj", "{Some GUID}"
In the properties page of ABCLibrary on the application section the Assembly name & Default namespace are both ABC.
Why will this run on my computer by not my colleagues?
Update
I've just used the fuslogvw. Looking at the log file for the assembly that is giving my colleague issues (ABC) and it says the bind result operation completed successfully, no issues that I can see
Another Update
So it works on my other colleagues computer so its appears to be this one computer (the one it really needs to run on). I did notice something (probably nothing but not getting anywhere) in windows explorer the app has an icon but on the computer that it isn't working on it has the visual studio default icon.
Update 3
So it works on some of my colleagues computer and other it doesn't. Is the error message telling me that there is a file in the assembly ABC that cannot be loaded? If so they only reference I have added is a Bloomberg reference which every users uses everyday so not sure what is going on
Upvotes: 1
Views: 525
Reputation: 7671
There could be any number of problems why a computer can't load an assembly. Some reasons may include:
I recommend you use the Assembly Binding Log Viewer (Fuslogvw.exe) to see the details of what's happening on the computer:
fuslogvw
in the command promptTo learn more about how to investigate a bind failure see Fuslogvw's page at MSDN
Upvotes: 1