Click here to Skip to main content
15,919,423 members

Comments by Jay Ahmedabad (Top 4 by date)

Jay Ahmedabad 24-May-16 9:34am View    
I have a function to perform sign in for identity server users. I am passing usename and password parameter in that function.My code is as below

public void SignInIdSrv(string user, string pass)
{
var returnUrl = _context.Request.QueryString["returnUrl"];

if (WebAppServiceGateway.Instance.Authorize(user, pass, true))
{

_context.Response.RedirectLocation = returnUrl;
}
else
_context.Response.RedirectLocation = _context.Request.RawUrl;
}

error occurs at WebAppServiceGateway.Instance.Authorize(user, pass, true).

error message is "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)"
Jay Ahmedabad 24-May-16 7:31am View    
Resigned all assemblies,Added to GAC,removed all references and added them again.But error remained same.Still not able to solve the issue
Jay Ahmedabad 24-May-16 5:08am View    
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.
Jay Ahmedabad 24-May-16 3:22am View    
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)