BrandonPotter / SimpleTCP

Straightforward .NET library to handle the repetitive tasks of spinning up and working with TCP sockets (client and server).
Apache License 2.0
363 stars 108 forks source link

strong-name related error #61

Closed HeisenbergK closed 4 years ago

HeisenbergK commented 4 years ago

Hello,

I have used SimpleTCP in my code. When I am trying to implement it, I get the following error:

Could not load file or assembly 'SimpleTCP, Version=1.0.24.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

HeisenbergK commented 4 years ago

The following procedure helped me:

Step 0: Install the library through NuGet Step 1 : Run visual studio command prompt and go to directory where the DLL is located. Step 2 : Create il file using: ildasm /all /out=Test.il Test.dll Step 3 : Generate new Key: sn -k mykey.snk Step 4 : Sign the library: ilasm /dll /key=mykey.snk Test.il

After that the issue is resolved

shahkamranqader commented 3 years ago

@HeisenbergK I follow your complete procedure but issue not resolve yet. same problem. Could not load file or assembly 'SimpleTCP, Version=1.0.24.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

Step 0: Install the library through NuGet Step 1 : Run visual studio command prompt and go to directory where the DLL is located. Step 2 : Create il file using: ildasm /all /out=Test.il SimpleTCP.dll Step 3 : Generate new Key: sn -k mykey.snk Step 4 : Sign the library: ilasm /dll /key=mykey.snk Test.il

shahkamranqader commented 3 years ago

System.IO.FileLoadException HResult=0x80131044 Message=Could not load file or assembly 'SimpleTCP, Version=1.0.24.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044) Source=testproject