RavenDB build#2127客户端异常:[Argument_StreamNotReadable]尝试创建新数据库时

Len*_*rri 5 database deployment iis exception ravendb

我刚刚根据Ayende的公告下载了RavenDB#2127的新不稳定版本.

我想测试它在目前使用build#888的现有应用程序上的执行速度.

RavenDB被部署为IIS应用程序.

Web.config 有:

<add key="Raven/AnonymousAccess" value="Get"/>
Run Code Online (Sandbox Code Playgroud)

我得到了一个禁止的例外.然后我把它改为:

<add key="Raven/AnonymousAccess" value="All"/>
Run Code Online (Sandbox Code Playgroud)

现在,当我尝试使用Raven Studio创建一个新的数据库时,我遇到了以下"糟糕"的异常.

如果您知道是什么导致了这种情况,请分享解决方案.

 at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Func`2 func)
   at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Action`1 action)
   at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent)
   at Raven.Studio.Infrastructure.Execute.OnTheUI(Action action)
   at Raven.Studio.Infrastructure.InvocationExtensions.<>c__DisplayClass30.<Catch>b__2e(Task task)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()



Client side exception:
System.ArgumentException: [Argument_StreamNotReadable]
Arguments: 
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.10411.00&File=mscorlib.dll&Key=Argument_StreamNotReadable
   at System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean leaveOpen)
   at Raven.Studio.Models.ApplicationModel.AddErrorNotification(Exception exception, String message, Object[] details)
   at Raven.Studio.Infrastructure.InvocationExtensions.<>c__DisplayClass30.<>c__DisplayClass32.<Catch>b__2f()
   at AsyncCtpThreadingExtensions.<>c__DisplayClass4.<InvokeAsync>b__3()
Run Code Online (Sandbox Code Playgroud)

我还在RavenDB问题跟踪网站上打开了一个错误报告.如果你想关注它,这里是链接:

http://issues.hibernatingrhinos.com/issue/RavenDB-636

Len*_*rri 4

在 Skype 聊天中与 Ayende 进行一些调试后,他刚刚提到了这一点:

[12/10/21 3:10:31 AM] Oren Eini:在 IIS 中运行时...您启用了 Windows Auth 吗?您需要它来创建新的数据库。

事实证明,我的计算机上甚至没有安装 Windows 身份验证...我正在新安装的 Windows 8 中尝试此操作。所以我不得不去安装 Windows 身份验证功能。然后我进入 IIS 并为 RavenDB 网站启用 Windows Auth:

在此输入图像描述

现在通过 Raven Studio 创建一个新数据库就可以了!:)

Ayende 始终在场帮助我们充分利用 RavenDB。他的大力支持。