當我試圖創建RavenDb一個
數據庫
人收藏,我得到以下錯誤:RavenDb - 遠程服務器返回錯誤:(403)禁止
The remote server returned an error: (403) Forbidden.
我白熱化烏鴉IIS和我不確定發生了什麼事。在烏鴉Management Studio中,當我嘗試創建一個數據庫,我得到下面的結果:
Could not authenticate against server
Message: The remote server returned an error: NotFound. Uri: /databases?database=Default Server Uri: http://localhost:8888/docs/Raven/Databases/People
-- Error Information -- System.Net.WebException: The remote server returned an error: NotFound. at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Func
2.Invoke(T arg) at System.Threading.Tasks.TaskFactory
1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endMethod, TaskCompletionSource
1 tcs)
當我看着這個與過程監控,我發現我越來越一堆未發現的錯誤:
在C:\Utils\RavenDB\Web
目錄中,有斌和數據文件夾,僅此而已。
我應該自己創建必要的文件夾嗎?
我創建了文檔文件夾,但沒有任何更改。仍然有問題。
有什麼想法?
編輯:
創建一個文檔與烏鴉Management Studio中拉琴的嘗試:
請求:
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, like Gecko) Chrome/16.0.912.75 Safari/535.7
Host: localhost:1786
Connection: Keep-Alive
Pragma: no-cache
{
"Name": "..."
}
響應:
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
你能通過Fiddler檢查發生了什麼嗎? – 2012-03-08 11:37:23
@AendeRahien對此進行了調查,並用該信息編輯了問題。 – tugberk 2012-03-08 12:37:23
我遇到了同樣的問題,幾乎相同的提琴手輸出(酒吧主機/端口等) – JonVD 2012-03-09 12:08:10