Wednesday, April 15, 2009

DLL file "Add reference" Error in Visual Studio 2008

Error adding dll file to visual studio 2008 as reference Error 1: While the trying to add JSIM.dll file to the project it gave an error:

A reference to 'D:\filepath\filename.dll' could not be added

The verdict was that the .dll file was missing the .pdb file (my assumption) or since the dll was stored on the server and downloaded as a text file the server probably added a mime filetype descriptor in the dll file to a .txt file (As when it was downloaded of the server it, for some funny reason wanted to store itself as .dll.txt file and so it was basically corrupt.

So Scott had to download a fresh new copies of .Dll files and the accompying files.

No comments: