Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WM Encoder SDK Push fails with invalid username.

1 view
Skip to first unread message

Daley@discussions.microsoft.com Daniel Daley

unread,
Feb 14, 2007, 1:27:10 PM2/14/07
to
I have been trying unsuccessfully to get a PUSH stream to work with the SDK.
When I call WMEncoder::PrepareToEncode I get the error "The specified
username is invalid.". I have the ACL plugin enabled on the publishing point.
At first I thought it used the OnAcquireCredentials event to get this
information but my callback is never called. I know that my event handler
works because I do receive OnStateChange events.

I then thought that maybe it was using my current user on the encoder to try
and authenticate, but after many unsuccessful attempts with the LogonUser and
ImpersonateLoggedOnUser functions that doesn't seem to be the solution
either. As a last attempt I created a user on my encoding machine with the
same username as on the server but I receive the same message from that
account. I even enabled logging of failed authorization attempts in the
windows event viewer on the server and never receive any messages failed or
otherwise. When I use the actual windows media encoder I do receive failed
login attempts if I enter the incorrect information.

Does anyone know the magic words to make this thing authenticate?

Thanks!

me

unread,
Jun 5, 2007, 5:06:12 PM6/5/07
to
Did you ever figure this out? I've been having the same issues and am
stumped..

mint33

unread,
Oct 26, 2009, 2:32:56 AM10/26/09
to
Hi,
I am having the same.
Did anyone solve the above problem ?

me wrote:

Re:WM Encoder SDK Push fails with invalid username.
05-Jun-07

Did you ever figure this out? I have been having the same issues and am
stumped..

Previous Posts In This Thread:

On Wednesday, February 14, 2007 1:27 PM
Daniel Dale wrote:

WM Encoder SDK Push fails with invalid username.

Thanks!

On Tuesday, March 27, 2007 6:21 PM
KBoe wrote:

I'm facing exactly the same problem, trying to somehow catch the
I'm facing exactly the same problem, trying to somehow catch the
OnAcquireCredentials event and set the username and password. But this event
is never raised / or at least never catched. When adding an event handler for
this event, the encoder hangs as soon as the PrepareToEncode(true) method has
been called.

I read in some other threads that you'll have to use the WMFSDK (Windows
Media Format SDK) and implement the IWMCredentialCallBack interface to handle
authentication, but that's a difficult job for me, since I use C# and the
WMFSDK has no managed object DLLs that easily support .NET (the SDK is
focused on C++)

Any idea why I can't handle this event? And if I really must implement
interfaces from WMVCore.dll (as stated in the WMFSDK), does anyone have some
sample code for me?


"Daniel Daley" wrote:

On Tuesday, June 05, 2007 5:06 PM
me wrote:

Re:WM Encoder SDK Push fails with invalid username.
Did you ever figure this out? I have been having the same issues and am
stumped..

EggHeadCafe - Software Developer Portal of Choice
Silverlight 3: Displaying and Charting with TwitterCounter
http://www.eggheadcafe.com/tutorials/aspnet/2d803e3c-081f-437c-8ee6-8584c1f63683/silverlight-3-displaying.aspx

0 new messages