Use API Microsoft.Expression.Encoder.MediaItem in WCF Service which has been installed on IIS 6 Windows Server 2003

Unanswered Use API Microsoft.Expression.Encoder.MediaItem in WCF Service which has been installed on IIS 6 Windows Server 2003

  • Friday, November 23, 2012 3:03 PM
     
      Has Code

    In my WCF, I have to use MediaItem to get Informations of the media that I passed. When I install the service on IIS 7, it works well. But when I install it on IIS6(windows server 2003) for demo. It does not work and print the following message. By the way, I have installed the same version of Expression Encoder on the machine of IIS 7 and II6.

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
       <s:Body>
          <s:Fault>
             <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode>
             <faultstring xml:lang="fr-FR">Cannot find video codec: Wvc1</faultstring>
             <detail>
                <ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                   <HelpLink i:nil="true"/>
                   <InnerException>
                      <HelpLink i:nil="true"/>
                      <InnerException>
                         <HelpLink i:nil="true"/>
                         <InnerException i:nil="true"/>
                         <Message>Exception from HRESULT: 0x8004025D</Message>
                         <StackTrace>at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
       at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
       at ThrowHRESULT(Int32 hr)
       at MS.Internal.Expression.Encoder.Media.MediaFileInfo..ctor(String fileName)</StackTrace>
                         <Type>System.Runtime.InteropServices.COMException</Type>
                      </InnerException>
                      <Message>Exception from HRESULT: 0x8004025D</Message>
                      <StackTrace>at MS.Internal.Expression.Encoder.Media.MediaFileInfo..ctor(String fileName)
       at MS.Internal.Expression.Encoder.MediaImport.MediaInfoCache`1.CreateMediaFileInfoFromFile(String strFilename)
       at MS.Internal.Expression.Encoder.MediaImport.MediaInfoCache`1.OpenMediaFileInfo(String strFilename)
       at Microsoft.Expression.Encoder.MediaImportInfo.OpenMediaFileInfo(String strFilename)
       at Microsoft.Expression.Encoder.MediaImportInfo.OpenAndValidateMediaFile(String strFilename, MediaLoadOptions loadOptions)</StackTrace>
                      <Type>Microsoft.Expression.Encoder.UnableToAnalyzeFileException</Type>
                   </InnerException>
                   <Message>Cannot find video codec: Wvc1</Message>
                   <StackTrace><![CDATA[at Microsoft.Expression.Encoder.MediaImportInfo.OpenAndValidateMediaFile(String strFilename, MediaLoadOptions loadOptions)
       at Microsoft.Expression.Encoder.MediaItem.Analyze(AudioVideoFile audioVideoFile)
       at Microsoft.Expression.Encoder.MediaItem.Analyze()
       at Microsoft.Expression.Encoder.MediaItem..ctor(String fileName)
       at BoodsServices.PlayerService.GetMediaItem(String source)
       at SyncInvokeGetMediaItem(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)]]></StackTrace>
                   <Type>Microsoft.Expression.Encoder.InvalidMediaFileException</Type>
                </ExceptionDetail>
             </detail>
          </s:Fault>
       </s:Body>
    </s:Envelope>

All Replies

  • Monday, November 26, 2012 5:30 AM
    Moderator
     
     
    Server 2003 is not supported by Expression Encoder 4 as it doesn't support its minimum requirements.
  • Tuesday, November 27, 2012 8:41 AM
     
     

    But it does work if I run a console application which use this class "MediaItem" in windows server 2003.

    The example official could be found in the directory %Program Files%\Microsoft Expression\Encoder 4\SDK\Samples\MediaInfo

    Could you explain me the reason, thanks.


    • Edited by Sawyerlin Tuesday, November 27, 2012 8:41 AM
    •