Friday, 2 January 2015

How create strong name for third part .dll files.

We are facing "Strong name not found" issue while using third part dll in our solution.  The resolving steps as below.

    For example third party dll is sample.dll  and key file in yourkey.snk
  1. Open Visual studio Command prompt.
  2. Navigate to the third party dll folder 
  3. Execute below command will create Key file.
                    sn -k Yourkey.snk
     4.  Disassemble the dll file by using below command
          ildasm /all /out=sample.il sample.dll
5. Rebuild and Sign the dll
ilasm /dll /key=YourKey.snk sample.il

Happy coding :)