RavenDb - The remote server returned an error: (403) Forbidden

后端 未结 1 540
星月不相逢
星月不相逢 2021-02-13 23:30

When I try to create a database people collection on RavenDb, I get the following error:

The remote server returned an error: (403) Forbi

相关标签:
1条回答
  • 2021-02-14 00:17

    This was answered in the comments, however I'll post it here for posterity.

    The issue is resolved by changing the web.config value:

    <add key="Raven/AnonymousAccess" value="Get"/> 
    

    To:

    <add key="Raven/AnonymousAccess" value="All"/>
    

    Here is the link to the config page that explains each of the options. Be aware that this option will in fact turn off authentication, if you wish to run with authentication you will need the 'Get' or 'None' setting and you will also need to make sure Windows Authentication is installed (IIS 7.5) and enabled on the Raven IIS Application.

    0 讨论(0)
提交回复
热议问题