Web service can't open named pipe - access denied

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2008-12-04T11:57:46Z Indexed on 2010/05/08 3:58 UTC
Read the original article Hit count: 300

Filed under:
|
|
|
|

Hi All,

I've got a C++ service which provides a named pipe to clients with a NULL SECURITY_ATTRIBUTES as follows:

hPipe = CreateNamedPipe( lpszPipename, PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED, PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT, PIPE_UNLIMITED_INSTANCES, BUFSIZE, BUFSIZE, 0, NULL);

There is a dll which uses this pipe to get services.

There is a c# GUI which uses the dll and works fine.

There is a .net web site which also uses this dll (the exact same one on the same PC) but always gets permission denied when it tries to open the pipe.

Any one know why this might happen and how to fix it?

Also does anyone know of a good tutorial on SECURITY_ATTRIBUTES because I haven't understood the msdn info yet.

Thanks, Patrick

© Stack Overflow or respective owner

Related posts about winapi

Related posts about c++