Glimpse.axd 403ing On IIS

大城市里の小女人 提交于 2019-12-07 03:06:19

问题


When trying to access /Glimpse.axd after I've published to IIS (7.5), I'm now receiving a 403 Forbidden response. Is there a setting in IIS that disables access to .axd files? Or is this something else entirely?


回答1:


This is usually due to the fact that your source IP Address is not allowed in the web.config section for Glimpse. I just ran in to this issue yesterday.

Look for this in your web.config file, it can go anywhere in the web.config file.

<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>



回答2:


I got an error like this when trying to access http://leniel-pc:8083/glimpse.axd:

403 Forbidden
Ensure 'aa90::edad:55a5:7777:cd2c%11' is configured for Glimpse access.

After doing this:

<glimpse enabled="true">
  <ipAddresses>
    <!-- List of IP addresses allowed to get Glimpse data. -->
    <!--The ip of your machine -->
    <add address="aa90::edad:55a5:7777:cd2c%11"/>
  </ipAddresses>
</glimpse>

Problem solved! :D



来源:https://stackoverflow.com/questions/8843560/glimpse-axd-403ing-on-iis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!