Application Error:while retriving messages from MSMQ to application
<p>I am getting following error. This is related to HUB. I mean i am trying to retrive messages from MSMQ to application. But i am getting following error in that application log.</p>

<p>Timestamp: 7/27/2012 12:35:26 PM<br>
Message: Publish exception<br>
Category: Service, Service<br>
Priority: 5<br>
EventId: 0<br>
Severity: Error<br>
Machine: AMHS-DB1<br>
Application Domain: AllscriptsHubConnectivityService.exe<br>
Process Id: 3160<br>
Process Name: D:\HLTHPNT\sbin\Hub\AllscriptsHubConnectivityService.exe<br>
Win32 Thread Id: 9636<br>
Extended Properties: Exception message - System.NullReferenceException: Object reference not set to an instance of an object.<br>
   at Allscripts.ProEHR.Portal.Handlers.PortalRegistrationProcessed.BuildHubMessage(ProEHRMessage aMessage) in     C:\HealthMatics\ProEHRHub\Main\Applications\Handlers\PatientAccountHandlers\PortalRegistrationProcessed.cs:line 97<br>
   at Allscripts.ProEHR.EventBusHarness.HubMessageManager.&lt;>c_<em>DisplayClass8.b</em>_6(ProEHRMessage m) in   C:\HealthMatics\ProEHRHub\Main\Applications\Allscripts.ProEHR.EventBusHarness\HubMessageManager.cs:line 133<br>
   at Allscripts.ProEHR.Messaging.Core.ProMessageRouter.Publish[TMessage](TMessage message) in   C:\HealthMatics\ProEHRHub\Main\Applications\Allscripts.ProEHR.Messaging.Core\ProMessageRouter.cs:line 243  </p>
