队列不存在,或您没有足够的权限执行该操作-另一种原因

今天在虚拟机上调程序的时候,将消息队列的地址配置成了127.0.0.1,结果总是报下面的错误: 
[2011-04-19 10:53:53,331 ERROR StartProcess] 
-- Excute InitMessageQueue Error! Error :调用的目标发生了异常。
System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> **.OperateErrorException: 获取MSB反馈的消息队列失败,错误信息为**.OperateErrorException: 启动监听失败。队列路径:msbresponse;主机:msbresponse;名称:rockee ---> System.Messaging.MessageQueueException: 队列不存在,或您没有足够的权限执行该操作。
   在 System.Messaging.MessageQueue.MQCacheableInfo.get_ReadHandle()
   在 System.Messaging.MessageQueue.ReceiveAsync(TimeSpan timeout, CursorHandle cursorHandle, Int32 action, AsyncCallback callback, Object stateObject)
   在 System.Messaging.MessageQueue.BeginReceive()
   在 **.SystemService.Mq.MSMessageQueueMgr.Listen(MSMQCfgInfo cfg, RecievedMsgOKEventHandler handle)
   --- 内部异常堆栈跟踪的结尾 ---
   在 **.SystemService.Mq.MSMessageQueueMgr.Listen(MSMQCfgInfo cfg, RecievedMsgOKEventHandler handle)
   在 **.SystemService.Mq.MSMQQueue.StartListen(Type[] arrRequireType)
   在 **.AppServer.MSBService.MSBInvokerClass.InitMessageQueue()
   在 **.AppServer.MSBService.MSBInvokerClass.InitMessageQueue()
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   在 System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   在 System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

 

检查了消息队列服务,存在并且有everyone权限,再用消息队列测试工具MSMQTracer 测试,照样能读写,于是抱着试验的态度将127.0.0.1换成了本机对外IP,结果访问成功;

 

将该问题记录在这里,以放置以后同样问题的出现; 

posted @   遥望星空  阅读(5399)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 25岁的心里话
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示