Glimpse.axd 403ing在IIS上

Jes*_*ing 6 httpforbiddenhandler iis-7.5 http-status-code-403 asp.net-mvc-3 glimpse

在我发布到IIS(7.5)后尝试访问/Glimpse.axd时,我现在收到403 Forbidden响应.IIS中是否有禁用访问.axd文件的设置?或者这完全是另一回事?

Cra*_*erz 12

这通常是因为Glimpse的web.config部分中不允许使用源IP地址.我昨天刚开始讨论这个问题.

在web.config文件中查找,它可以在web.config文件中的任何位置.

<glimpse enabled="true">
  <ipAddresses>
    <!-- List of IP addresses allowed to get Glimpse data. Optional. localhost (IPv4  &IPv6) by default -->
    <add address="x.x.x.x"/> <!--The ip of your machine -->
    <add address="::1"/>
  </ipAddresses>
</glimpse>
Run Code Online (Sandbox Code Playgroud)