cancel
Showing results for 
Search instead for 
Did you mean: 

DI Event Service Server and Client on one machine (XP SP2)

AdKerremans
Active Contributor
0 Kudos

Hi,

Do I have to take special actions to run the Di Event Service SERVER and CLIENT on one machine (XP SP2 or W2003 Server)?

Does anybody know how to check what messages are in the queue?

thx,

Ad

Accepted Solutions (1)

Accepted Solutions (1)

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ad,

There is no special action to do if you need to run DIEventService Client and Server in the same machine. I did it several times while testing the solution.

But if you don't need to send the information between 2 machines you don't need to have all the .NETRemoting and MSMQ mechanism in place, a simple dll could do the work more easily. I suppose you are doing it for testing?

To see the MSMQ messages you can open the Settings -> Administrative Tools -> Computer Management -> Services and Applications -> Message Queuing -> Private queues.

You will be able to see the queues DIEventService creates but for the messages it will be quite difficult as the client removes them just after reading them.

Hope it helps

Trinidad.

Former Member
0 Kudos

Hello,

i tried to run the di event services on one machine (installed SAP Business One DI Event Client and Server on XP SP2) and it fails on connect.

The sample code crashes on the connect at this line:

evtService.Connect( _

New B1DIEventsService.B1DIEventsConnectionLostDelegate(AddressOf OnServerShutdown))

Error:

System.UriFormatException - Invalid URI: The hostname could not be parsed

InnerStackTrace:

bei System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)

bei System.Uri..ctor(String uriString)

bei System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink..ctor(String channelURI, TcpClientChannel channel)

bei System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSinkProvider.CreateSink(IChannelSender channel, String url, Object remoteChannelData)

bei System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider.CreateSink(IChannelSender channel, String url, Object remoteChannelData)

bei System.Runtime.Remoting.Channels.Tcp.TcpClientChannel.CreateMessageSink(String url, Object remoteChannelData, String& objectURI)

bei System.Runtime.Remoting.Channels.Tcp.TcpChannel.CreateMessageSink(String url, Object remoteChannelData, String& objectURI)

bei System.Runtime.Remoting.Channels.ChannelServices.CreateMessageSink(String url, Object data, String& objectURI)

bei System.Runtime.Remoting.RemotingServices.CreateChannelSink(String url, Object data, IMessageSink& chnlSink)

bei System.Runtime.Remoting.RemotingServices.Unmarshal(Type classToProxy, String url, Object data)

bei System.Activator.GetObject(Type type, String url, Object state)

bei System.Activator.GetObject(Type type, String url)

bei B1DIEventsService.B1DIEventClientChannel.Connect()

bei B1DIEventsService.B1DIEventClientChannelMsmq.Connect()

bei B1DIEventsService.B1DIEventClientChannel..ctor(B1DIEventsService evtService, String dbName, String serverName)

bei B1DIEventsService.B1DIEventClientChannelMsmq..ctor(B1DIEventsService evtService, String dbName, String serverName)

bei B1DIEventsService.B1DIEventClientChannel.Initialize(B1DIEventsService evtService, String dbName, String serverName)

bei B1DIEventsService.B1DIEventsService.Connect(B1DIEventsConnectionLostDelegate connectionLostListener)

bei AssTec.Sbo.AkkuDIEventService.EventListener.Connect()

Thanks Chris

Answers (0)