Can't load mysql.web assembly

前端 未结 9 1848
故里飘歌
故里飘歌 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:39

    I have experienced the same situation and managed to fix the problem with these steps,

    1. Read the error information carefully which provides helpful details to rectify the situation.
    2. I wouldn't change the machine.config file.
    3. As it says Application cannot find a reference to the assembly MySql.Web and the version it is trying to reference is Version=6.7.4.0.
    4. Based on path you install MySql you will be able to find the correct assembly files, ex : C:\Program Files\MySQL\Connector NET 6.7.4\Assemblies\v4.0\MySql.Web.dll
    5. Copy C:\Program Files\MySQL\Connector NET 6.7.4\Assemblies\v4.0\MySql.Web.dll file to bin folder. (I would copy all the files in C:\Program Files\MySQL\Connector NET 6.7.4\Assemblies\v4.0\ folder to bin folder)

    Hope this helps! Thanks

提交回复
热议问题