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>
構成に何か問題がありますか? 私を助けてください。