Author Topic: System.Speech.dll inaccessible?  (Read 2834 times)

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
System.Speech.dll inaccessible?
« on: March 28, 2018, 10:23:48 AM »
Normally it is easy to add the .NET 4.5 assembly System.Speech.dll as a reference in VS. However I found that this same dll "could not be found" when it is added as a referenced assembly in a VA inline function. Placing the DLL in the VA root folder fixes this issue, though I am surprised that it cannot be found natively.

Where is VA typically looking for libraries?

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: System.Speech.dll inaccessible?
« Reply #1 on: March 28, 2018, 11:43:05 AM »

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Re: System.Speech.dll inaccessible?
« Reply #2 on: March 28, 2018, 12:11:08 PM »
Thanks for that!

Interesting that something as basic as System.Speech is not in the GAC...or maybe it's just my Windows 7 PC  :o

Either way that means I'll need to add a permanent function for copying a library from my App folders as needed. Thanks!

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: System.Speech.dll inaccessible?
« Reply #3 on: March 28, 2018, 01:11:43 PM »
System.Speech.dll is in my GAC ->  C:\Windows\assembly\GAC_MSIL\...

Win10 64

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Re: System.Speech.dll inaccessible?
« Reply #4 on: March 29, 2018, 10:34:25 AM »
I noticed that on my Windows 7 PC System.Speech IS present, but it is v 3.0.0.0. IIRC doesn't VA required v4.0+?

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: System.Speech.dll inaccessible?
« Reply #5 on: March 29, 2018, 12:20:11 PM »
v3 of that assembly doesn't necessarily mean that it's using v3 of the .net framework.  Also, v4.5 of the .net framework can consume assemblies of earlier versions (but not later ones).