my web app is working fine on localhost, but when I publish it on Azure, I get the following error:
Could not load file or assembly 'System.IdentityModel.Tokens.Jwt' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
On a localhost is working fine.
I am using 4.5 framework, and it is definned in web.config file too. I tried to reinstall it in nuget manager but I get
Package 'System.IdentityModel.Tokens.Jwt.4.0.2.206221351' already exists in project 'project1'
I also can't find this assembly in references folder. This is the first time I have expirienced this type of a problem.
What do you recommend me to do?
Regards, Sandi
I have figured it out. I updated System.IdentityModel.Tokens.Jwt reference via nuget package manager and it works again.
Regards!