locked
Referencing Speech SDKs from a WCF Service on a Windows Server RRS feed

  • Question

  • Hello,

    I have a question about application deployment.

     

    I have a WCF Service that references Microsoft.Speech library. When i create the service locally I directly reference the Microsoft.Speech assembly (C:\Program Files\Microsoft Speech Platform SDK\Assembly\Microsoft.Speech.dll).

    When I deploy it to a Windows Server IIS and try to connect to it from a client running on my local machine, it fails to find the assembly.

    Could not load file or assembly 'Microsoft.Speech, Version=10.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

     

    My question is, when i create the reference locally on my service, how does it maintain that reference when I deploy it? My Server has the Microsoft Speech Platform Server Runtime (10.x) installed. Does the assembly version need to match exactly? When the service runs does it look in the GAC for the runtime assembly? Should I copy the assembly into my service and reference it from the relative path?

     

    Thanks


    My educational lectures on C# and .Net in general (ranging from beginner level topics to advanced topics): mariocatch.wordpress.com
    Friday, April 29, 2011 6:33 PM

Answers

  • Hello, from .NET perspective, the assembly's major version (the first two 10.1) must match, and the server assembly's minor version (the last two .x.x) must be greater than or equal to the version you used during development. But since speech SDK relies on native components, the problem may also come out if a native component's version dismatch. Anyway, I suggest you to use exactly the same version on server and development machine.
    Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
    Windows Azure Technical Forum Support Team Blog
    • Marked as answer by Yi-Lun Luo Friday, May 6, 2011 9:07 AM
    Tuesday, May 3, 2011 2:29 AM

All replies

  • Just wondering if anyone has had some experience on this.
    My educational lectures on C# and .Net in general (ranging from beginner level topics to advanced topics): mariocatch.wordpress.com
    Monday, May 2, 2011 3:12 PM
  • Hello, from .NET perspective, the assembly's major version (the first two 10.1) must match, and the server assembly's minor version (the last two .x.x) must be greater than or equal to the version you used during development. But since speech SDK relies on native components, the problem may also come out if a native component's version dismatch. Anyway, I suggest you to use exactly the same version on server and development machine.
    Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
    Windows Azure Technical Forum Support Team Blog
    • Marked as answer by Yi-Lun Luo Friday, May 6, 2011 9:07 AM
    Tuesday, May 3, 2011 2:29 AM