Click here to Skip to main content
15,886,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have added Thinktecture.IdentityServer.Core nuget package.Also installed all other packages on which Thinktecture.IdentityServer.Core package depends.
Signed all assemblies using BrutalDev assembly signer.Added all assemblies to GAC.Now I add all nuget packages dll to Package section of solution.But it still gives me error

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

Any help will be appreciated.Thanks in Advance

What I have tried:

I have added all nuget packages dll to GAC.Add all dll to package section of solution.Also tried copy to local option for dll reference.
Posted
Updated 23-May-16 20:38pm
v3

1 solution

 
Share this answer
 
Comments
Jay Ahmedabad 24-May-16 3:22am    
I tried to check either assembly is in GAC or not as follow

C:\Windows\system32>gacutil /l Thinktecture.IdentityServer.Core
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.33440
Copyright (c) Microsoft Corporation. All rights reserved.

The Global Assembly Cache contains the following assemblies:
Thinktecture.IdentityServer.Core, Version=1.0.0.0, Culture=neutral, PublicKeyT
oken=95df42fe70e34d1d, processorArchitecture=MSIL

Number of items = 1

As per above result assembly is in GAC.
Still at run time it gives error message

Could not load file or assembly 'Thinktecture.IdentityServer.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
Mehdi Gholam 24-May-16 3:26am    
One of your dlls is referencing the unsigned version. Open each dll you are using in Reflector and see which one it is, then recompile that dll to reference the signed version.
Jay Ahmedabad 24-May-16 5:08am    
Thanks for your concern.I have seen all the dll into reflector and found all dll signed.Can you tell me from where I should refer dll after adding them in GAC.Currently I refer all dll from package folder And still getting above error.
Mehdi Gholam 24-May-16 5:15am    
Check your project files and make sure the loading paths are correct, better still remove all references and add them again (signed versions).
Jay Ahmedabad 24-May-16 7:31am    
Resigned all assemblies,Added to GAC,removed all references and added them again.But error remained same.Still not able to solve the issue

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900