nservicebus

What could prevent NServiceBus from moving messages to the error queue if there are exceptions when processing?

旧时模样 提交于 2019-12-11 14:58:34
问题 I have an application using NServiceBus to process messages, and while debugging I'm finding that exceptions may be thrown, and the message is lost. I've checked both the main and error queues, and the message was only attempted once. Are there any common pitfalls that could cause this to happen? 回答1: This is a known issue on the trunk, make sure to use the latest 2.0 build 来源: https://stackoverflow.com/questions/3297608/what-could-prevent-nservicebus-from-moving-messages-to-the-error-queue

NServiceBus IoC Serialization Exception

家住魔仙堡 提交于 2019-12-11 13:51:19
问题 I am using a "custom" object builder (Autofac) so I can re-use the registration of many types that I have done in a common assembly. When I run the service, hosted within NServiceBus.Host.exe, I get the following error: SerializationException was unhandled: Type 'Autofac.Core.Registration.ComponentNotRegisteredException' in assembly 'Autofac, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da' is not marked as serializable. This seems odd to me because NServiceBus uses Autofac

Issue resolving Unity 2 container using NServiceBus 3 object builder

倾然丶 夕夏残阳落幕 提交于 2019-12-11 09:27:08
问题 I'm receiving the following error while using the NServiceBus 3.0.0 beta 2 pre-release object builder for Unity 2. As far as I have been able to trace, it appears to be a problem with the CommonObjectBuilder in the AutowireEnabledInjectionProperty builder. Configuration for NSB is as follows: public class NServiceBusContainerExtension : UnityContainerExtension { protected override void Initialize() { var busConfig = NServiceBus.Configure.WithWeb() .Log4Net() .UnityBuilder(Container)

RavenDB Index Error With NServiceBus

吃可爱长大的小学妹 提交于 2019-12-11 09:24:40
问题 I am running NServiceBus 3.3 and I am getting this error: Polling of timeouts failed. There is no index named: RavenTimeoutPersistence/TimoutDataSortedByType I run this worker as my Distributor. Like this: NServiceBus.Host.exe /install NServiceBus.Distributor NServiceBus.Production /serviceName:BusDistributorService /displayName:"Bus Distributor Service" This answer indicates that I need to delete and recreate the index. But I don't know anything about RavenDB besides the fact that

Sending NServiceBus message inside TransactionScope

时间秒杀一切 提交于 2019-12-11 08:29:49
问题 I am trying to use NHibernate to save to a database in the same transaction as sending a message on the bus from inside an MVC application: public void DoSomethingToEntity(Guid id) { var session = _sessionFactory.OpenSession(); CurrentSessionContext.Bind(session); using (var transactionScope = new TransactionScope()) { var myEntity = _session.Get(id); myEntity.DoSomething(); _session.Save(myEntity); _bus.Send(myMessage); transactionScope.Complete(); } session.Dispose(); } In the configuration

NServiceBus, NHibernate, and GuidComb()

删除回忆录丶 提交于 2019-12-11 08:29:13
问题 Disclaimer: This is a follow-on question from my other question about NServiceBus which was answered very thoroughly. My current question is this: If a website is built to be 'dumb' like the article referred to, above, suggests then how does the following scenario work? A user registers on a website by filling out a form with relevant details. When the user clicks the 'submit' button on the form the web application takes the form data and creates a message which it sends to the application

NServiceBus 5 with RabbitMQ transport throwing exception while enabling UnicastBus

送分小仙女□ 提交于 2019-12-11 07:52:18
问题 I'm attempting to use NServiceBus with RabbitMQ in a self-hosted scenario. I've obtained the source for the NServiceBus and NServiceBus.RabbitMQ repos on github to track down the issues I've had so far, so the version I'm using is the source on their repos as of yesterday. Here is my configuration: var busConfiguration = new BusConfiguration(); busConfiguration.EndpointName("RMAQueue"); busConfiguration.AssembliesToScan(typeof(RMACommand).Assembly); busConfiguration.Conventions()

NServiceBus endpoint is not starting on Azure Service Fabric local cluster

╄→гoц情女王★ 提交于 2019-12-11 07:31:05
问题 I have a .NetCore stateless WebAPI service running inside Service Fabric local cluster. return Endpoint.Start(endpointConfiguration).GetAwaiter().GetResult(); When I'm trying to start NServiceBus endpoint, I'm getting this exception : Access to the path 'C:\SfDevCluster\Data_App_Node_0\AppType_App10\App.APIPkg.Code.1.0.0.diagnostics' is denied. How can it be solved ? VS is running under administrator. 回答1: The issue you are having is because the folder you are trying to write to is not

NServiceBus fails to process message: The requested service 'NServiceBus.Impersonation.ExtractIncomingPrincipal' has not been registered

烈酒焚心 提交于 2019-12-11 07:19:04
问题 I am receiving an error when using NServiceBus 4.0.3 with NHibernate 3.3.1 when it's trying to process a message INFO NServiceBus.Unicast.Transport.TransportReceiver [(null)] <(null)> - Failed to process message Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'NServiceBus.Impersonation.ExtractIncomingPrincipal' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered

Sending files over MSMQ

江枫思渺然 提交于 2019-12-11 06:37:27
问题 In a retail scenario where each stores report their daily transaction to the backend system at the end of the day. Today a file consisting of the daily transactions and some other meta information is transferred from the stores to the backend using FTP. I’m currently investigating replacing FTP with something else. MSMQ has been suggested as an alternative transport mechanism. So my question is, do we need to write a custom windows service that sticks the daily transactions file into a