NamedPipeClientStream can not access to NamedPipeServerStream under session 0

限于喜欢 提交于 2019-11-29 09:14:29

Looks like the problem was in security settings here:

System.Security.Principal.SecurityIdentifier sid = new System.Security.Principal.SecurityIdentifier(System.Security.Principal.WellKnownSidType.BuiltinUsersSid, null);

Should be :

System.Security.Principal.SecurityIdentifier sid = new System.Security.Principal.SecurityIdentifier(System.Security.Principal.WellKnownSidType.WorldSid, null);

Thanks microsoft communnity

I know this question is old bit I just ran across this issue and figured I'd add to it.

This error can also indicate that the named pipe is already in use. I had a production service running of the same executable that I was trying to debug, and when initializing that pipe server it failed because it was already in use by another process. Seems like the error should be a little more informative of a situation like this, but it is what it is.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!