ASP.NET Impersonate in .NETFramework 2 VS .NETFrameWork 4

后端 未结 1 800
南笙
南笙 2020-12-04 01:20

We have an ASP.NET Site in .NetFramework 2 (with App Pool 2 Classic in IIS 7.5), We use mixed Authentication with Basic Authenticate and Form Authenticate

相关标签:
1条回答
  • 2020-12-04 01:33

    I found Some points:

    1- The Multi-Request behaves like Parallel processing, and as you know in classic mode we have some limitations with parallelism.

    2- In Integrated mode we have some limitations in Impersonate Enable. The default behavior of Enable Impersonate is 500.24 Error: Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode" if we want enable impersonate we need to add <validation validateIntegratedModeConfiguration="false"/> to <system.webServer> in web.config, So we don't get the error, but steel we have another limitation. The impersonate commands not worked in Begin_RequestAnd in AuthenticateRequest Methods, anything else worked perfectly.

    The Breaking Changes for ASP.NET 2.0 applications running in Integrated mode on IIS 7.0 is very good article in this case.

    So the solution is

    Move to Integrated mode (Need Add tag) And Use Impersonate in any other methods instead of Begin_Request or AuthenticateRequest.

    0 讨论(0)
提交回复
热议问题