ASP.NET Web Application sample 'System.InvalidOperationException'

67 views
Skip to first unread message

Simmy Fleischer

unread,
Jun 17, 2015, 3:46:25 AM6/17/15
to particula...@googlegroups.com
Product name:NServiceBus
Version:5
VS 2013

Description:I am trying to learn how to use NServiceBus and when I start the ASP.NET Web Application sample from the web site I immediately receive the following error in the debugger:

"An unhandled exception of type 'System.InvalidOperationException' occurred in NServiceBus.Core.dll

Additional information: There is a problem with the input queue: FormatName:DIRECT=OS:FLEISCHER-LAP\private$\Samples.AsyncPages.Server. See the enclosed exception for details."

Any help in solving this problem greatly appreciated

Simmy

weronik...@particular.net

unread,
Jun 17, 2015, 4:13:08 AM6/17/15
to particula...@googlegroups.com, sim...@gmail.com
Hi Simmy,

This kind of exception is thrown when an internal MSMQ error occurs, so if you could provide more details it would be very valuable (e.g. inner exception, stacktrace)?

Thanks,
Weronika

Simmy Fleischer

unread,
Jun 17, 2015, 4:26:06 AM6/17/15
to particula...@googlegroups.com
Inner Exception: Message Queuing has not been installed on this computer
Stack Trace:    at NServiceBus.Transports.Msmq.MsmqDequeueStrategy.QueueIsTransactional() in c:\BuildAgent\work\3206e2123f54fce4\src\NServiceBus.Core\Transports\Msmq\MsmqDequeueStrategy.cs:line 162
   at NServiceBus.Transports.Msmq.MsmqDequeueStrategy.Init(Address address, TransactionSettings settings, Func`2 tryProcessMessage, Action`2 endProcessMessage) in c:\BuildAgent\work\3206e2123f54fce4\src\NServiceBus.Core\Transports\Msmq\MsmqDequeueStrategy.cs:line 71
   at NServiceBus.Unicast.Transport.TransportReceiver.StartReceiver() in c:\BuildAgent\work\3206e2123f54fce4\src\NServiceBus.Core\Unicast\Transport\TransportReceiver.cs:line 215
   at NServiceBus.Unicast.Transport.TransportReceiver.Start(Address address) in c:\BuildAgent\work\3206e2123f54fce4\src\NServiceBus.Core\Unicast\Transport\TransportReceiver.cs:line 179
   at NServiceBus.Unicast.UnicastBus.Start() in c:\BuildAgent\work\3206e2123f54fce4\src\NServiceBus.Core\Unicast\UnicastBus.cs:line 671
   at Program.Main() in c:\Users\fleischer\Downloads\NServiceBus-aspNet\Server\Program.cs:line 13
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Thanks!

weronik...@particular.net

unread,
Jun 17, 2015, 4:55:00 AM6/17/15
to particula...@googlegroups.com, sim...@gmail.com
Seems like you're missing some prerequisites. The easiest and recommended solution would be to run a platform installer. You can download it here http://particular.net/downloads.
You can also install required elements manually, as described here http://docs.particular.net/platform/installer/offline#platform-installer-components-nservicebus-prerequistes.

Let me know if that solved your issue.


On Wednesday, June 17, 2015 at 9:46:25 AM UTC+2, Simmy Fleischer wrote:
Reply all
Reply to author
Forward
0 new messages