我们目前在非LocalSystem帐户上运行NServiceBus(3.3.7)服务时遇到一些问题。似乎有问题联系RavenDB进行传奇访问。我们目前收到这样的错误:
2013-06-14 11:21:39,551 - WARN - NServiceBus.Unicast.Transport.Transactional.TransactionalTransport - Failed raising 'transport message received' event for message with ID=94ff04d1-e05a-414b-8a14-f243e7cc2e9e\387208
System.InvalidOperationException ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
at System.Net.HttpWebRequest.GetResponse()
at Raven.Client.Connection.HttpJsonRequest.ReadStringInternal(Func`1 getResponse)
--- End of inner exception stack trace ---
at NServiceBus.Unicast.UnicastBus.HandleTransportMessage(IBuilder childBuilder, TransportMessage msg)
at NServiceBus.Unicast.UnicastBus.TransportMessageReceived(Object sender, TransportMessageReceivedEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at NServiceBus.Unicast.Transport.Transactional.TransactionalTransport.OnTransportMessageReceived(TransportMessage msg)
我们还通过将Raven / AnonymousUserAccessMode设置为All来改变了对raven的访问权限,但没有运气。有什么想法吗?
答案 0 :(得分:1)
我认为当访问数据的用户帐户没有访问服务器数据目录的必要权限时,我得到了这个例外。
尝试将您正在运行服务访问权限的帐户授予/Server/Database
。