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=, 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

accept rate: 100%

I guess your GAC doesn't have this assembly:

(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=, Culture=neutral, PublicKeyToken=f222fc4333e0d400").

permanent link

answered 08 Dec '17, 09:42

tyteen4a03's gravatar image

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 08 Dec '17, 07:17

question was seen: 3,161 times

last updated: 08 Dec '17, 09:42