Getting "Unrecognized error 109 (0x6d)" which can be "fixed" by changing web.config
Asked Answered
F

4

6

I have a WCF service hosted in IIS using WAS. When I try to access this service using a net.tcp binding I get the following error:

There was an error reading from the pipe: Unrecognized error 109 (0x6d).

When using basicHttp I do not encounter the problem.

The strange thing is that I can "fix" the problem by randomly changing the web.config and saving it. The problem just vanishes until I do an IISReset or an Application Pool Recycle. It is then broken again until I change (or just save) the web.config again...

  • I have enabled tracing but that just gives the unrecognize error.
  • Rebooting doesn't help.
  • I have increased the thresholds in WCF but that didn't change anything.

The contract is really really simple with no complex types, so no serialization problems. The return message size is a string of only 12 characters

Fremont answered 2/2, 2011 at 8:47 Comment(3)
I have the same issue, when you change the config you are recycling the pool. I am not able to fix it.Ecuador
Pablo, did you ever found a solution?Fremont
nop, we are on it right know. I think it gets overflowed somehow, but I can not find any relevant information when I try to debug it.Ecuador
H
3

Have a look at this...

https://learn.microsoft.com/en-ca/archive/blogs/joncole/smsvchost-exe-event-log-id-8-an-error-occurred-while-dispatching-a-duplicated-socket-this-handle-is-now-leaked-in-the-process

In my case restarting net tcp listener and port sharing service helped. The article has a nice overview of most likely causes too.

Harangue answered 21/4, 2011 at 5:42 Comment(0)
M
2

I have got the same error and found a solution to my case, try it out and check if it resolve yours.

In my case, there was a unrecognized data being passed through WCF. It was a enumerator that was not registered.

E.g (c#):

enum MyEnum { A = 1, B = 2 }

And then I use a MyEnum object with value 3 (any that dont exist in enum). So, WCF cant understand this value and gave me this error.

Mydriatic answered 27/7, 2015 at 18:22 Comment(0)
E
1

If you are using big messages you could try changing the transfer mode from buffered to streamed: http://msdn.microsoft.com/en-us/library/ms731913.aspx

It has solved our problems.

Regards

Ecuador answered 31/3, 2011 at 18:57 Comment(0)
B
1

I received this error because I was returning a DataTable from my service call and I did not set the TableName property.

Brocket answered 13/3, 2012 at 15:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.