Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

rpc server is not available

Posted on 2011-03-23
4
Medium Priority
?
600 Views
Last Modified: 2012-05-11
I have client/server apps that work as long as they are on the same machine. When they are on different machines, I get "The RPC server is not available". I see the message in the debug output window, I don't get a popup. The binding string is composed with

    status = RpcStringBindingCompose(
          szMyUUID,                       // UUID to bind to.
          (unsigned char*)"ncacn_np", // Named Pipe
          szServer,                                 // Address
          szEndpoint,                 // Endpoint (named pipe)
          "Security=identification dynamic true",                                 // Protocol dependent network options to use.
          &szStringBinding);              // String binding output.

The machines are XP and Windows 7. It doesn't matter which one has the client and server.
szEndpoint is "\\pipe\\pipename" and szServer is "\\\\servername". I can ping the server. I have tried it with and without the "Security..." option.
RPCSS is started. The RPC locator is not running but I have tried it with it running. From what I have read, it's not necessary anyway. The Registry Terminal Server value AllowRemoteRPC is a 1. I tried setting the Registry MSDTC value AllowOnlySecureRPCCalls to 0 as a test. Nothing works. RpcStringBindingCompose and RpcBindingFromStringBinding return successfully and the binding string looks correct. It's NdrGetBuffer, which I can't find any documentation for and have seen references where others couldn't either, in the MIDL compiler generated code that fails.

The firewall is off. I'm on an internal lan and settings are managed by Group  Policy.

It seems like it must be a security or permissions issue. I have administrator privileges on both ends.

What am I missing?

Thanks for the help.
0
Comment
Question by:amorales63
  • 3
4 Comments
 
LVL 13

Expert Comment

by:BCipollone
ID: 35200999
When you go into that service and check the dependencies are all of the dependant services running as well?
0
 

Author Comment

by:amorales63
ID: 35201052
Are you referring to the RPCSS or the cilent/sever apps? I don't think RPCSS is dependant on anything. The client/server apps I'm developing and don't have any dependancies except RPCSS. How do I check it? I don't see anything when looking at the services.
0
 

Accepted Solution

by:
amorales63 earned 0 total points
ID: 35206797
Problem solved. This was originally done for the client and server to be on the same machine. I am now going between machines. The named pipe name was created by concatenating the session ID on the end of the name. On XP this is a 0, on Windows 7 it's a 1. So the names didn't match. It works when I get the name to match.
0
 

Author Closing Comment

by:amorales63
ID: 35239063
There was no helpful input from the experts. I found the problem on my own.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question