Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows Media Server / July 2007

Tip: Looking for answers? Try searching our database.

Create remote wmsserver instance error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
netmagic - 05 Jul 2007 01:06 GMT
sorry my english.

I have 2 media servers and 1 client.
one server is in LAN, the other is over internet.
I have to make management application for several media servers.
so, I tried create remote object of WMSServer.
same code. but media server in LAN is work, other is error "The RPC
Server is Unavailable".
server setting is same.

why windows media encoder can push stream to server over Internet with
userid/password and can't my application?
what is problem?

this is code.
COAUTHIDENTITY cId;
       cId.User = (USHORT *) L"Username";
       cId.UserLength = wcslen( L"Username" );
       cId.Domain = (USHORT *) L"IP Address"; // (Internet or LAN)
       cId.DomainLength = wcslen( L"IP Address" );
       cId.Password = (USHORT *) L"Password";
       cId.PasswordLength = wcslen( L"Password" );
       cId.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE;

       COAUTHINFO cai = { RPC_C_AUTHN_WINNT, RPC_C_AUTHZ_NONE, NULL,
                                    RPC_C_AUTHN_LEVEL_PKT_PRIVACY,
RPC_C_IMP_LEVEL_IMPERSONATE,
                                    &cId, EOAC_NONE };

       COSERVERINFO cs = { 0,
const_cast<OLECHAR*>(L"211.220.194.42"), &cai,
0 };

       //cs.pAuthInfo = NULL;

       // Create a MULTI_QI structure to hold an IUnknown pointer
       // to an IWMSServer interface.
       ZeroMemory(&mqi, sizeof(mqi));
       mqi.pIID = &IID_IWMSServer;
       mqi.pItf = NULL;
       mqi.hr = 0;

       // Retrieve a pointer to the IWMSServer interface.
       hr = CoCreateInstanceEx(CLSID_WMSServer,
                                                       NULL,

CLSCTX_REMOTE_SERVER,
                                                       &cs,
                                                       1,
                                                       &mqi);
Vlad - 24 Jul 2007 20:02 GMT
I suggest to use HTTP to receive commends and then use DCOM on the local
computer.

Signature

Regards,
Vladimir
http://voynex.com - custom software development

> sorry my english.
>
[quoted text clipped - 46 lines]
>                                                         1,
>                                                         &mqi);
Vlad - 24 Jul 2007 20:02 GMT
This is because you are using DCOM to connect to WMS. And DCOM technology has
a lot of restrictions - not internet friendly.
Signature

Regards,
Vladimir
http://voynex.com - custom software development

> sorry my english.
>
[quoted text clipped - 46 lines]
>                                                         1,
>                                                         &mqi);
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.