Challenge Object "PARAMETER IS INCORRECT" bug?
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Challenge Object "PARAMETER IS INCORRECT" bug?

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> DRM
Author Message
Joel Mello
Guest





Posted: Fri Sep 03, 2004 2:15 am    Post subject: Challenge Object "PARAMETER IS INCORRECT" bug? Reply with quote

Hello all,

I have a serious problem with our DRM license server. We're using the WMRM
9 SDK on W2K. Users download video trailers from our site, that have
trailer.aspx as an acquisition url. Once they hit that page they enter
their email address and password, then submit. On good authorization from
the database we try to issue a playback license from the challenge string
sent via their WMP.

Out of nowhere our web service stopped issuing licenses, and now fails
continuously. Restarting IIS and/or restarting the server DOES NOT fix the
problem. I have recompiled and tried everything I can think of, but nothing
seems to solve the issue...
Nothing new has been installed on the server, no changs have been made to
IIS and the encrypted WMVs defnitely have not changed. I downloaded the .NET
WebService Studio testing app, but when I call my web service using 2
different (good) challenges from our trailers I get a generic error 5 "THE
PARAMETER IS INCORRECT" from the above try..catch block. I have searched
google, msn and google groups for anyone else with this problem but have not
found anything! The challenges are being sent properly, and the sChallenge
string isn't modified anywhere (it's a parameter to the function call).

Here is this same web service, from the top to the point where it bombs:

#Region "makeSimpleLicense"

<WebMethod()> Public Function makeSimpleLicense(ByVal sUser As String, ByVal
sPassword As String, ByVal sChallenge As String, ByVal bSilent As Boolean)
As String

' Create a DRM license from a challenge

' Try to log this user in

If (Not bIsLoggedIn) Then

bIsLoggedIn = login(sUser, sPassword)

If (Not bIsLoggedIn) Then

throwSoapException("Login Error", SoapException.ClientFaultCode)

Exit Function

End If

End If


'Objects: Challenge, Header, Key, Rights, License, Decoding, Response
objects

Dim objChallenge As New WMRMOBJSLib.WMRMChallenge()

Dim objHeader As New WMRMOBJSLib.WMRMHeader()

Dim objKey As New WMRMOBJSLib.WMRMKeys()

Dim objRights As New WMRMOBJSLib.WMRMRights()

Dim objLicense As New WMRMOBJSLib.WMRMLicGen()

Dim objResponse As New WMRMOBJSLib.WMRMResponse()

If (Err.Number <> 0) Then

throwSoapException("Generic Error (1): " & Err.Number & ": " &
Err.Description, SoapException.ServerFaultCode)

Err.Clear()

End If

'Tag information

Dim Silent As Boolean = bSilent

'Get the Header information using the Challenge object.

'""""""""""""""""

'Challenge Object

'""""""""""""""""

Try

objChallenge.Challenge = sChallenge

Catch EX As Exception

throwSoapException("Challenge object creation failed: " & EX.Message & "
len: " & Len(sChallenge), SoapException.ServerFaultCode)

End Try



Any suggestions would be greatly appreciated!

Back to top
Joel Mello
Guest





Posted: Fri Sep 03, 2004 2:57 am    Post subject: Re: Challenge Object "PARAMETER IS INCORRECT" bug? Reply with quote

Getting a new cert seemed to solve the problem. What happened? Our
database log of licenses issued says that our last license was issued on
8/31/04 at 4:35pm PST...
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> DRM All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB