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 2 days ago

tyteen4a03's gravatar image

tyteen4a03
4116
accept rate: 100%

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

(2 days ago) Vlad

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

(2 days ago) 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 2 days ago

tyteen4a03's gravatar image

tyteen4a03
4116
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:

×57

question asked: 2 days ago

question was seen: 45 times

last updated: 2 days ago