Joel Mello
Guest
|
Posted:
Fri Sep 03, 2004 2:15 am Post subject:
Challenge Object "PARAMETER IS INCORRECT" bug? |
|
|
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!
|
|