Re: Could not load file or assembly MySql.Data.dll 0x80131515
Posted by: Gabriela Martinez Sanchez
Date: August 16, 2013 09:05AM

Hi Daniel,

I have used in the past Powershell to make some queries and/or execute a couple of commands and haven't had any problems with any .net version. Although I don't have more experience than that using it. By your description I dont't see any reason why it is requiring the 4.5 version of the mysql.data if you're using Powershel 3.0 it should work with .net 4.0 without any problem. I would suggest you to add a configuration file so you can set the version of the framework that you want to use. This way you don't have to alter the version the machine uses or the registry. Simply modify (or create) $pshome\powershell.exe.config so that it contains the following:

<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0.30319"/>
<supportedRuntime version="v2.0.50727"/>
</startup>
</configuration>

Please give it a try and let us know if this work for you.

Options: ReplyQuote


Subject
Written By
Posted
Re: Could not load file or assembly MySql.Data.dll 0x80131515
August 16, 2013 09:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.