asp.net – FederatedAuthentication.WSFederationAuthenticatio
发布时间:2020-12-15 23:58:25 所属栏目:asp.Net 来源:网络整理
导读:我试图在Application_Start()中订阅RedirectingToIdentityProvider事件,但是FederatedAuthentication.WSFederationAuthenticationModule为null 码 protected void Application_Start(){ FederatedAuthentication.WSFederationAuthenticationModule.Redirecti
我试图在Application_Start()中订阅RedirectingToIdentityProvider事件,但是FederatedAuthentication.WSFederationAuthenticationModule为null
码 protected void Application_Start() { FederatedAuthentication.WSFederationAuthenticationModule.RedirectingToIdentityProvider += WSFederationAuthenticationModule_RedirectingToIdentityProvider; } 解决方法
尝试这样做 – 适合我.
void Application_Start() { FederatedAuthentication.ServiceConfigurationCreated += OnServiceConfigurationCreated; } void OnServiceConfigurationCreated(object sender,ServiceConfigurationCreatedEventArgs e) { FederatedAuthentication.WSFederationAuthenticationModule.RedirectingToIdentityProvider += WSFederationAuthenticationModule_RedirectingToIdentityProvider; } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net-mvc – ASP.NET MVC:如何创建一个可用的UrlHelper
- 在ASP.Net日历控件中默认选择当前日期
- 在asp.net中引用jquery的最佳方法是什么?
- asp.net-core – 通过URL访问ASP.NET 5 View Component
- asp.net – 从ascx中查找对aspx的控制
- asp.net-mvc – Linq离开外连接不起作用
- asp.net-mvc-4 – 我似乎没有安装SignalR与MVC4
- 实验四:搭建动态论坛(ASP+ACCESS)
- 使用 xUnit 编写 ASP.NET Core WebAPI单元测试
- asp.net-mvc – MVC 5 Web Api – 从基本控制器继承路由
推荐文章
站长推荐
- 防止IIS卸载ASP.Net站点
- 在大型asp.net C#Web应用程序中修复SQL注入表单
- jquery form表单提交插件asp.net后台中文解码
- 在asp.net web api中不会触发Application_Error
- 尽管指定了我自己的视图,ASP.NET MVC3仍然会查找
- asp.net – 使用Active Directory的REST API的授
- asp.net-mvc – 官方的“如何”MVC编辑器/显示模
- asp.net-mvc – 控制器中的模拟服务器
- 如何在asp.net中使用facebook api创建一个facebo
- asp.net-core – MVC 6安装为Windows服务(ASP.NE
热点阅读