Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>When a port is not specified for RavenDb it will go out and attempt to find it's own, it does this by calling <em>IPGlobalProperties.GetActiveTcpListeners()</em>.</p> <p><a href="https://github.com/ravendb/ravendb/blob/master/Raven.Database/Util/PortUtil.cs" rel="noreferrer">RavenDb | PortUtil.cs</a></p> <pre><code>var activeTcpListeners = IPGlobalProperties .GetIPGlobalProperties() .GetActiveTcpListeners(); </code></pre> <p>Calling <a href="http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipglobalproperties.getactivetcplisteners.aspx" rel="noreferrer">GetActiveTcpListeners()</a> intern calls the Win32 function <strong>GetTcpTable()</strong> which attempts to enumerate all of the possible port combinations on the host. For obvious reasons, it would not be a good scenario to allow folks to do port scanning within Windows Azure Web Sites. Which means the <strong>GetTcpTable</strong> operation fails and when something fails in the world of development we throw an exception.</p> <p>In this particular case the exception is a <a href="http://msdn.microsoft.com/en-us/library/system.net.networkinformation.networkinformationexception.aspx" rel="noreferrer">NetworkInformationException</a> which is raised do to the security permissions neglecting the call to <strong>GetTcpTable</strong>. This is why it results in an Access Denied message.</p> <p><strong>tl;dr</strong></p> <p>Add a default port to your web.config appsettings section:</p> <pre><code> &lt;appSettings&gt; &lt;add key="Raven/Port" value="*"/&gt; &lt;!-- Add real tcp port # --&gt; &lt;add key="Raven/DataDir" value="~\Data"/&gt; &lt;add key="Raven/AnonymousAccess" value="Get" /&gt; &lt;/appSettings&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload