webcofig加了SecuritySwitch配置时无法触发

fisea 2012-05-22 05:21:12
在webfig:

<securitySwitch baseInsecureUri="http://localhost/PCCWWebSite" baseSecureUri="https://localhost/PCCWWebSite" xmlns="http://SecuritySwitch-v4.xsd">
<paths>
<add path="~/Login.aspx"/>
<add path="~/WebPage/MyCareCenter"/>
<add path="~/WebPage/MessageCenter"/>
<add path="~/WebPage/FamilyCareCenter"/>
<add path="~/WebPage/Account"/>
<add path="~/WebPage/Report"/>
<add path="~/WebPage/Common/ChangePicture.aspx"/>
<add path="~/WebPage/Common/DownloaderImage.aspx"/>
<add path="~/WebPage/Common/Error.aspx"/>
<add path="~/WebPage/Common/LinkExpire.aspx"/>
<add path="~/WebPage/Common/NoticeMsg.aspx"/>
<add path="~/WebPage/Common/PrintError.aspx"/>
<add path="~/WebPage/Common/SendSms.aspx"/>
<add path="~/WebPage/Common/ShowAllFirends.aspx"/>
</paths>
</securitySwitch>
以上配置的页面都无法触发ajax.请高手赐教.
...全文
64 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
fisea 2012-05-22
  • 打赏
  • 举报
回复
详细配置节点:
<section name="securitySwitch" type="SecuritySwitch.Configuration.Settings, SecuritySwitch"/>

<httpModules>
<add name="SecuritySwitch" type="SecuritySwitch.SecuritySwitchModule, SecuritySwitch"/>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpModules>

<modules>
<remove name="SecuritySwitch"/>
<add name="SecuritySwitch" type="SecuritySwitch.SecuritySwitchModule, SecuritySwitch"/>
</modules>



<securitySwitch baseInsecureUri="http://localhost/PCCWWebSite" baseSecureUri="https://localhost/PCCWWebSite" xmlns="http://SecuritySwitch-v4.xsd">
<paths>
<add path="~/Login.aspx"/>
<add path="~/WebPage/MyCareCenter"/>
<add path="~/WebPage/MessageCenter"/>
<add path="~/WebPage/FamilyCareCenter"/>
<add path="~/WebPage/Account"/>
<add path="~/WebPage/Report"/>
<add path="~/WebPage/Common/ChangePicture.aspx"/>
<add path="~/WebPage/Common/DownloaderImage.aspx"/>
<add path="~/WebPage/Common/Error.aspx"/>
<add path="~/WebPage/Common/LinkExpire.aspx"/>
<add path="~/WebPage/Common/NoticeMsg.aspx"/>
<add path="~/WebPage/Common/PrintError.aspx"/>
<add path="~/WebPage/Common/SendSms.aspx"/>
<add path="~/WebPage/Common/ShowAllFirends.aspx"/>
<add path="~/WebPage/Common/TimeOut.aspx"/>
<add path="~/WebPage/Common/VerificationCode.aspx"/>
<add path="~/WebPage/MyCareCenter/Weight.aspx"/>
</paths>
</securitySwitch>

52,797

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧