-4

*您好朋友我正在开发 Web 应用程序,我想将协议从 http 更改为 https。我正在使用 Visual Studio 2012 Express Web。我将 Web 服务器更改为使用 IIS Express,然后我从属性框架中选择了启用 ssl true 并检查了我找到的应用程序主机文件

   <site name="Texniki Tapsiriq" id="13">
     <application path="/" applicationPool="Clr4IntegratedAppPool">
          <virtualDirectory path="/" physicalPath="C:\Texniki Tapsiriq\Texniki Tapsiriq\Texniki Tapsiriq" />
            </application>
            <application path="/Login.aspx" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="C:\Texniki Tapsiriq\Texniki Tapsiriq\Texniki Tapsiriq" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:54650:localhost" />
                <binding protocol="https" bindingInformation="*:44301:localhost" />

            </bindings>
        </site>

添加了https协议*但是当我尝试调试它时出现错误,例如找不到页面或名称已更改我该如何解决?

4

1 回答 1

0

参考代码项目 (Matt Sollars)

<secureWebPages>
    <files>
        <add path="Default.aspx" secure="Insecure" />

        <add path="Admin/MoreAdminStuff.aspx" secure="Ignore" />

        <add path="Legal/Copyright.aspx" secure="Ignore" />

        <add path="Lib/PopupCalendar.aspx" secure="Ignore" />

    </files>
    <directories>
        <add path="/" recurse="False" />

        <add path="Admin" />

        <add path="Admin/Info" secure="Insecure" />
        <add path="Members/Secure" recurse="True" />

    </directories>

</secureWebPages>
于 2013-09-10T06:34:30.033 回答