asp.net mvc - RavenDb - The remote server returned an error: (403) Forbidden -


when try create database people collection on ravendb, following error:

the remote server returned error: (403) forbidden.

i hots raven on iis , not sure going on. on raven management studio, when try create database, below result:

could not authenticate against server

message: remote server returned error: notfound. uri: /databases?database=default server uri: http://localhost:8888/docs/raven/databases/people

-- error information -- system.net.webexception: remote server returned error: notfound. @ system.net.browser.clienthttpwebrequest.endgetresponse(iasyncresult asyncresult) @ system.func2.invoke(t arg) @ system.threading.tasks.taskfactory1.fromasynccorelogic(iasyncresult iar, func2 endmethod, taskcompletionsource1 tcs)

when looked process monitor, see getting bunch of not found errors:

enter image description here

under c:\utils\ravendb\web directory, there bin , data folders, nothing more. should create necessary folders myself? created docs folder nothing changed. still having problems.

any thoughts?

edit:

tried fiddler on raven management studio creating document:

request:

put http://localhost:1786/docs/people http/1.1

accept: /

accept-language: en-us

referer: http://localhost:1786/silverlight/raven.studio.xap

content-length: 24

accept-encoding: identity

if-none-match: 00000000-0000-0000-0000-000000000000

content-type: application/json; charset=utf-8

user-agent: mozilla/5.0 (windows nt 6.1; wow64) applewebkit/535.7 (khtml, gecko) chrome/16.0.912.75 safari/535.7

host: localhost:1786

connection: keep-alive

pragma: no-cache

{

"name": "..."

}

response:

http/1.1 403 forbidden

cache-control: private

server: microsoft-iis/7.5

x-aspnet-version: 4.0.30319

x-powered-by: asp.net

date: thu, 08 mar 2012 12:33:22 gmt

content-length: 0

this answered in comments, i'll post here posterity.

the issue resolved changing web.config value:

<add key="raven/anonymousaccess" value="get"/>  

to:

<add key="raven/anonymousaccess" value="all"/> 

here link config page explains each of options. aware option in fact turn off authentication, if wish run authentication need 'get' or 'none' setting , need make sure windows authentication installed (iis 7.5) , enabled on raven iis application.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -