刚刚更新了Azure移动服务的许多软件包,现在我收到"找不到方法"错误.这似乎不是其他地方报道的问题.知道哪个包需要降级?还是另一种解决方法?
[MissingMethodException: Method not found: 'Void System.IdentityModel.Tokens.JwtSecurityTokenHandler.set_CertificateValidator(System.IdentityModel.Selectors.X509CertificateValidator)'.]
Microsoft.WindowsAzure.Mobile.Service.Security.Providers.GoogleLoginProvider..ctor(HttpConfiguration config, IServiceTokenHandler tokenHandler) +0
lambda_method(Closure , Object[] ) +174
Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +419
[DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(System.Web.Http.HttpConfiguration, Microsoft.WindowsAzure.Mobile.Service.Security.IServiceTokenHandler)' on type 'GoogleLoginProvider'. ---> Method not found: 'Void System.IdentityModel.Tokens.JwtSecurityTokenHandler.set_CertificateValidator(System.IdentityModel.Selectors.X509CertificateValidator)'. (See inner exception for details.)]
Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +999
Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +589
Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +109
Autofac.Core.Resolving.InstanceLookup.<Execute>b__0() +63
Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +201
Autofac.Core.Resolving.InstanceLookup.Execute() +262
Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +282
Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +72
Autofac.Features.Collections.<>c__DisplayClass6.<RegistrationsFor>b__1(IComponentRegistration cr) +60
System.Linq.WhereSelectArrayIterator`2.MoveNext() …
Run Code Online (Sandbox Code Playgroud) 构建自定义IUserPasswordStore
以连接到旧系统的用户名/密码表.密码使用表中的自定义代码进行哈希处理,因此我需要编写自定义代码PasswordSignInAsync
.
我是否需要覆盖PasswordSignInAsync
或者是否有我可以提供的方法只是对密码进行哈希处理?如果我覆盖整个PasswordSignInAsync
是否有示例代码在某处显示我需要在方法中完成什么?
有人能告诉我上面的两行javascript究竟是做什么的吗?更重要的是,它被称为什么,所以我可以搜索一些JavaScript参考来了解它?我假设他们都在创建某种形式的数组,可以将对象添加到......?
我已经切换到使用Amazon SES从我们的asp.net系统发送我们的交易警报,我接到电话,人们正在收到重复的电子邮件.
我已确认我们的程序只向每个用户发送一次电子邮件.
我在第一封电子邮件发送后5分钟就收到了其中一个副本,让我觉得这是某种重试问题.
有没有办法配置/修复此问题?
如果它有所不同,我在asp.net中使用AWS SDK并调用该AmazonSimpleEmailServiceClient.SendEmail
调用.