Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

How do I use SQLAnywhere in PowerShell? When I try to Add-Type -Path "./Sap.Data.SQLAnywhere.v4.5.dll" it tells me Could not load file or assembly 'EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

asked 08 Dec '17, 07:17

tyteen4a03's gravatar image

tyteen4a03
613412
accept rate: 100%

I guess your GAC doesn't have this assembly: https://www.nuget.org/packages/EntityFramework/5.0.0

(08 Dec '17, 07:22) Vlad

Is there a portable solution that does not require tinkering with the GAC?

(08 Dec '17, 07:44) tyteen4a03

Found the answer:

When you install SQL Anywhere 17, the assemblies are automatically registered in the GAC. To load the assembly you need to do Add-Type -AssemblyName ("Sap.Data.SQLAnywhere.v4.5, Version=17.0.0.10624, Culture=neutral, PublicKeyToken=f222fc4333e0d400").

permanent link

answered 08 Dec '17, 09:42

tyteen4a03's gravatar image

tyteen4a03
613412
accept rate: 100%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×76

question asked: 08 Dec '17, 07:17

question was seen: 3,111 times

last updated: 08 Dec '17, 09:42