Send commands from vb.net WebForms (.NET Framework 4.6.1)

John,

From my recollection of VB.NET, the way you declare namespaces are not correct. Your types need to be wrapped inside the declared namespace. It should look like this:

Imports Microsoft.VisualBasic
Imports NServiceBus

Namespace Messaging.Commands
    Public Class DoSomethingCommand : Inherits IntegrationCommand

        Public Sub New()
        End Sub

        Public Sub New(command As String)
            WhatShouldHappen = command
        End Sub
        Public Property WhatShouldHappen As String
    End Class
End Namespace

Please see if that works?