Can't load mysql.web assembly

前端 未结 9 1738
故里飘歌
故里飘歌 2020-12-14 18:46

I am making a web application with ASP.net MVC3. I eventually want to use roleprovider and authentication used by a login form. So I have this code:



        
相关标签:
9条回答
  • 2020-12-14 19:47

    For upgrading latest version and solving these kind of issues;

    Under Nuget Manager Console run

    PM> Install-Package MySql.Web

    this will download latest MySql.Web for you. From project references find dll version by looking its properties.

    Then,change any other version in your web.config with this new version. This works.

    0 讨论(0)
  • 2020-12-14 19:49

    I have been looking for answer and I find the solution that work for me on fix-for-mysql-connectornet-693

    You just need to delete ".v20" from every instance of MySql.Web.v20 in

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
    

    and

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
    

    You can edit files in Notepad (Run As Administrator!).

    0 讨论(0)
  • 2020-12-14 19:50

    Another solution:

    • check version of .NET used by application pool of your web application. here we consider version is 2.0
    • go to folder C:\Program Files (x86)\MySQL\Connector NET 6.7.4\Assemblies\v2.0 (<- depend of your version)
    • copy dll from previous folder to C:\Windows\assembly
    0 讨论(0)
提交回复
热议问题