NServiceBus 3.2样品问题 [英] NServiceBus 3.2 Samples Issue

查看:182
本文介绍了NServiceBus 3.2样品问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行NServiceBus样品AsyncPages。似乎很简单。

I am trying to run the NServiceBus sample for AsyncPages. Seems simple enough.

  1. 下载最新的NServiceBus.com
  2. 执行批处理文件来安装prerequisites
  3. 打开解决方案
  4. preSS F5
  5. 输入一个数字文本框

当我这样做,我得到一个讨厌的RavenDB错误(NServiceBus使用此作为数据存储)。

When I do that, I get a nasty RavenDB bug (NServiceBus uses this as a Data Store).

Exception when starting endpoint, error has been logged. Reason: There is no index named: dynamic/TimeoutData

看来,RavenDB没有或不能创建索引。不知道这是一个RavenDB错误或NServiceBus错误,但它让我从运行示例。

It seems that RavenDB didn't or can't create an index. Not sure if this is a RavenDB bug or NServiceBus bug, but it keeps me from running the sample.

在此先感谢

更新:

在升级到3.2.1版本,安德烈亚斯建议。

When upgrading to version 3.2.1 as Andreas suggested.

Exception when starting endpoint, error has been logged. Reason: An exception was thrown while invoking the constructor 'Void .ctor(Raven.Client.IDocumentStore)' on type 'RavenTimeoutPersistence'.

我还发现,这与样品和TopShelf现在的问题。这些主机topshelf被引用,而不是3.2.1 3.2.0版本的NServiceBus的。

I am also noticing issues with the samples and TopShelf now. They host in topshelf is referencing 3.2.0 versions of NServiceBus instead of 3.2.1.

不是一个有趣的经验,到目前为止,但也许我应该放弃对样本,直接进入东西。

Not a fun experience so far, but maybe I should just give up on the samples and jump right into something.

推荐答案

我一直挣扎着同样的问题 - 原来NServiceBus有问题,连接RavenDB

I've been struggling with the same problem - it turned out NServiceBus had problem with connection to RavenDB.

RunMeFirst.bat试图配置的东西,但显然并不总是成功。

RunMeFirst.bat tries to configure things but apparently not always succeeds.

在我来说,我已经安装RavenDB但没有一个标准的8080端口,其中NServiceBus期待它打开。检查Raven.Server.exe.config在你的乌鸦安装文件夹(默认为C:\ RavenDB \ RavenDB.0.0.0 \ RavenDB.Server)。应该有定义的端口号。如果是不同的,你可以覆盖NServiceBus默认连接字符串RavenDB通过添加在你的web.config或app.config中:

In my case I had RavenDB installed but not on a standard port 8080 where NServiceBus is expecting it to be. Check your Raven.Server.exe.config in your Raven installation folder (by default C:\RavenDB\RavenDB.0.0.0\RavenDB.Server). There should be port number defined. If it's different you can override NServiceBus default connection string to RavenDB by adding in your web.config or app.config:

<connectionStrings>
    <add name="NServiceBus.Persistence" connectionString="Url=http://localhost:8081;" />
</connectionStrings>

其中8081是样本不同RavenDB连接端口。

Where 8081 is sample different RavenDB connection port.

这可能出问题的是,你的RavenDB是与使用8080端口等服务冲突的其他事情,要解决这个问题,你可以改变乌鸦配置的端口号,并添加自定义连接字符串。

Other thing that might go wrong is that your RavenDB is in conflict with other service that is using port 8080, to solve this you may change port number in Raven config and add custom connection string.

希望帮助, 干杯

这篇关于NServiceBus 3.2样品问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆