renaming .dll file gives error message
-
Hi All, I wrote code for class assembly named FTPUtility.dll using C#. After that i just rename that FTPUtility.dll file and used it in my application as reference. but it gives the error message "Could not load file or assembly 'FTPUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified." Anybody can tell me why this error occured.
Pravin
-
Hi All, I wrote code for class assembly named FTPUtility.dll using C#. After that i just rename that FTPUtility.dll file and used it in my application as reference. but it gives the error message "Could not load file or assembly 'FTPUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified." Anybody can tell me why this error occured.
Pravin
Is the error observed in Visual Studio Build Output window?
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
All the world's a stage, And all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts... --William Shakespeare -
Is the error observed in Visual Studio Build Output window?
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
All the world's a stage, And all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts... --William Shakespeareno, error does not appear in Build output window. it occures at the runtime
Pravin
-
Hi All, I wrote code for class assembly named FTPUtility.dll using C#. After that i just rename that FTPUtility.dll file and used it in my application as reference. but it gives the error message "Could not load file or assembly 'FTPUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified." Anybody can tell me why this error occured.
Pravin
Are you renaming after adding as a reference and building? It will naturally fail then. Why are you renaming the DLL?
Cheers, Vikram.
The hands that help are holier than the lips that pray.
-
Are you renaming after adding as a reference and building? It will naturally fail then. Why are you renaming the DLL?
Cheers, Vikram.
The hands that help are holier than the lips that pray.
No, first i rename that dll file and after that i have added it as reference. It compiles fine. but shows FileNotFound exception at run time. error message is as follows.... "Could not load file or assembly 'FTPUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
Pravin
-
Hi All, I wrote code for class assembly named FTPUtility.dll using C#. After that i just rename that FTPUtility.dll file and used it in my application as reference. but it gives the error message "Could not load file or assembly 'FTPUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified." Anybody can tell me why this error occured.
Pravin
-
i did that
Pravin
-
i did that
Pravin
The .Net framework doesn't like it when you rename a file without changing the assembly metadata so that the two correspond. That's what is causing the error. To fix it, go into the project properties of FTPUtility and change the assembly name field to the new filename. Then rebuild the project and replace the DLL file