我已经根据http://www.wiktorzychla.com/2014/11/forms-authentication-revisited-for-net.html的说明配置了“SessionAuthenticationModule” 。我的应用程序在 .Net 3.5 中,所以我根据“WIF 3.5 和 WIF 4.5 之间的命名空间映射”更改了库映射。当我运行它时,它会抛出如下所示的异常。"
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Microsoft.IdentityModel.Web.SessionAuthenticationModule.InitializePropertiesFromConfiguration(String serviceName) +16
Microsoft.IdentityModel.Web.SessionAuthenticationModule.InitializeModule(HttpApplication context) +124
Microsoft.IdentityModel.Web.HttpModuleBase.Init(HttpApplication context) +30
" 主要配置设置如下所示。
<section name="Microsoft.IdentityModel" type="Microsoft.IdentityModel.Configuration.SystemIdentityModelSection, Microsoft.IdentityModel"/>
<section name="Microsoft.IdentityModel.Protocols" type="Microsoft.IdentityModel.Web.Configuration.SystemIdentityModelServicesSection, Microsoft.IdentityModel.Protocols.WSFederation"/>
</configSections>
<Microsoft.IdentityModel></Microsoft.IdentityModel>
<Microsoft.IdentityModel.Protocols>
<federationConfiguration>
<cookieHandler requireSsl="false"/>
</federationConfiguration>
</Microsoft.IdentityModel.Protocols>
我的配置有什么问题吗?请帮我。