microsoft.public.dotnet.languages.csharp - General discussion regarding the C# .NET programming language. including best practices on developing with C# in VS, documentation, setup, and samples.
Hi, Can any one tell me how to write a msmq listener as a windows service in C#? Thanks in Advance, Vimal
I am having an issue with WCF and clustered MSMQ and hoping someone could help me here. I have a Service with MSMQ binding hosted in IIS 7 using WAS listing to a cluster MSMQ. Everything works fine, when I start my server/service. Messages come into system and service receives it and processes it. Now, active server in cluster dies and it fails over to second server. After failover, no new messages will be processed until I restart the IIS or WAS. I do not see any errors in Event Log or Trace. Everything seems to be working as normal. WAS is able receive messages from both servers. I created a console host and I was able to catch a Service Host exception and restart the host after failover. During Failover, the Service Host is not able to query MSMQ and throws a MSMQ missing exception. Does anyone know how to catch Service Host Faulted exception in WAS process? Thanks for your help
Hi, I add a TraceListener to Debug.Listeners. After that I use Debug.writeline. Problem: Nothing arrives at the listener. Code: Dim ts As New TraceStream Debug.Listeners.Add(New TextWriterTraceListener(ts)) Class Tracestream is a class inherited from IO.Stream: Public Class TraceStream Inherits IO.Stream Public Overrides ReadOnly Property CanRead() As Boolean Get Return False End Get End Property Public Overrides ReadOnly Property CanWrite() As Boolean Get Return True End Get End Property '....other overrides Public Overrides Sub Write( _ ByVal buffer() As Byte, ByVal offset As Integer, _ ByVal count As Integer) '... End Sub End Class I expect method Write to be called whenever Debug.Writeline is called, but this doesn't happen. CanRead and CanWrite do get called. Do I have a problem in understanding the Listeners concept? Armin