角电子邮件确认路由适用于localhost但不适用于IIS

时间:2018-10-15 19:52:11

标签: iis-7 angular5

我有一封带有确认链接的电子邮件,类似于以下内容。该链接包含电子邮件地址,用户ID和确认代码。

https://myapp.azurewebsites.net/confirmEmail/myemail@email.com/0c075391-be45-46ab-ad85-5aeacd8d6dab/6Y3zaW%2bM7F1O5wfP7GkWCeb5mWrxz%2bPBpgvwoqo1Fe%2fmCJZKIcwqAMJAo%2bZjBNcyhftcdidKPSIanb1AjuhTN9NRhHp%2fq9CBNyZ%2b8FuQMNCk1h762KTsCriLfo9CxiUYoIfXYDnkLCwKaxnxwArbZEdjOFa02HM48NridMpRVMbMfIdIvtUO5VFUmq9TOGVv

Angular IIS Rewrite配置

Private Sub CommandButton1_Click()

    Call Level1

End Sub

Sub Level1()

    Dim n As Long
    For n = 26 To 89
        'UserForm1.Controls("CheckBox" & n) = False

    Next
    Dim i As Long, txt As String
    For i = 1 To 3

        **If UserForm1.Controls("Checkbox" & i) = True Then** (Error Here)
            txt = txt & UserForm1.Controls("Checkbox" & i).Caption & ", "

        End If
    Next

    txt = Left(txt, Len(txt) - 2)
    'Cells(1, 1) = txt
    TextBox1.Value = txt

End Sub

角度路线

<configuration>
<system.webServer>
  <rewrite>
    <rules>
      <rule name="Angular Routes" stopProcessing="true">
        <match url=".*" />
        <conditions logicalGrouping="MatchAll">
          <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
          <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
        </conditions>
        <action type="Rewrite" url="/" />
      </rule>
    </rules>
  </rewrite>
</system.webServer>
</configuration>

当我使用localhost时,确认工作正常,但是当我部署到Azure IIS时,它只是显示“您正在寻找的资源已被删除,名称已更改或暂时不可用。”

0 个答案:

没有答案